Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(241)

Side by Side Diff: content/common/gpu/child_window_surface_win.h

Issue 1538803004: Create child window in GPU process for DirectComposition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_COMMON_GPU_CHILD_WINDOW_SURFACE_WIN_H_
6 #define CONTENT_COMMON_GPU_CHILD_WINDOW_SURFACE_WIN_H_
7 #include "ui/gl/gl_surface_egl.h"
8
9 #include <windows.h>
10
11 namespace content {
12
13 class GpuChannelManager;
14
15 class ChildWindowSurfaceWin : public gfx::NativeViewGLSurfaceEGL {
16 public:
17 ChildWindowSurfaceWin(GpuChannelManager* manager, HWND parent_window);
18
19 // GLSurface implementation.
20 bool Resize(const gfx::Size& size,
21 float scale_factor,
22 bool has_alpha) override;
23 bool InitializeNativeWindow() override;
24
25 protected:
26 ~ChildWindowSurfaceWin() override;
27
28 private:
29 HWND parent_window_;
30 GpuChannelManager* manager_;
31
32 DISALLOW_COPY_AND_ASSIGN(ChildWindowSurfaceWin);
33 };
34
35 } // namespace content
36
37 #endif // CONTENT_COMMON_GPU_CHILD_WINDOW_SURFACE_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698