2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
11 #ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_FRAME_WIN_H_
12 #define WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_FRAME_WIN_H_
16 #include "webrtc/modules/desktop_capture/desktop_frame.h"
17 #include "webrtc/system_wrappers/interface/scoped_ptr.h"
18 #include "webrtc/typedefs.h"
22 // DesktopFrame implementation used by screen and window captures on Windows.
23 // Frame data is stored in a GDI bitmap.
24 class DesktopFrameWin : public DesktopFrame {
26 virtual ~DesktopFrameWin();
27 static DesktopFrameWin* Create(DesktopSize size,
28 SharedMemory* shared_memory,
31 HBITMAP bitmap() { return bitmap_; }
34 DesktopFrameWin(DesktopSize size,
37 SharedMemory* shared_memory,
41 scoped_ptr<SharedMemory> owned_shared_memory_;
43 DISALLOW_COPY_AND_ASSIGN(DesktopFrameWin);
48 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_FRAME_WIN_H_