Index: content/common/gpu/child_window_surface_win.h |
diff --git a/content/common/gpu/child_window_surface_win.h b/content/common/gpu/child_window_surface_win.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..cb021ff746373b61d34048fd7c6000bb5c3d7d5a |
--- /dev/null |
+++ b/content/common/gpu/child_window_surface_win.h |
@@ -0,0 +1,37 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_COMMON_GPU_CHILD_WINDOW_SURFACE_WIN_H_ |
+#define CONTENT_COMMON_GPU_CHILD_WINDOW_SURFACE_WIN_H_ |
+#include "ui/gl/gl_surface_egl.h" |
+ |
+#include <windows.h> |
+ |
+namespace content { |
+ |
+class GpuChannelManager; |
+ |
+class ChildWindowSurfaceWin : public gfx::NativeViewGLSurfaceEGL { |
+ public: |
+ ChildWindowSurfaceWin(GpuChannelManager* manager, HWND parent_window); |
+ |
+ // GLSurface implementation. |
+ bool Resize(const gfx::Size& size, |
+ float scale_factor, |
+ bool has_alpha) override; |
+ bool InitializeNativeWindow() override; |
+ |
+ protected: |
+ ~ChildWindowSurfaceWin() override; |
+ |
+ private: |
+ HWND parent_window_; |
+ GpuChannelManager* manager_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(ChildWindowSurfaceWin); |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_COMMON_GPU_CHILD_WINDOW_SURFACE_WIN_H_ |