1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18

content / browser / media / capture / desktop_frame_skia.cc [blame]

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "content/browser/media/capture/desktop_frame_skia.h"

namespace content {

DesktopFrameSkia::DesktopFrameSkia(const SkBitmap& bitmap)
    : webrtc::DesktopFrame(webrtc::DesktopSize(bitmap.width(), bitmap.height()),
                           bitmap.rowBytes(),
                           static_cast<uint8_t*>(bitmap.getPixels()),
                           nullptr),
      bitmap_(bitmap) {}

DesktopFrameSkia::~DesktopFrameSkia() = default;

}  // namespace content