| OLD | NEW |
| (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_ |
| OLD | NEW |