| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef GPU_IPC_SERVICE_CHILD_WINDOW_SURFACE_WIN_H_ | 5 #ifndef GPU_IPC_SERVICE_CHILD_WINDOW_SURFACE_WIN_H_ |
| 6 #define GPU_IPC_SERVICE_CHILD_WINDOW_SURFACE_WIN_H_ | 6 #define GPU_IPC_SERVICE_CHILD_WINDOW_SURFACE_WIN_H_ |
| 7 | 7 |
| 8 #include "ui/gl/gl_surface_egl.h" | 8 #include "ui/gl/gl_surface_egl.h" |
| 9 | 9 |
| 10 #include <windows.h> | 10 #include <windows.h> |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 protected: | 30 protected: |
| 31 ~ChildWindowSurfaceWin() override; | 31 ~ChildWindowSurfaceWin() override; |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 void ClearInvalidContents(); | 34 void ClearInvalidContents(); |
| 35 | 35 |
| 36 // This member contains all the data that can be accessed from the main or | 36 // This member contains all the data that can be accessed from the main or |
| 37 // window owner threads. | 37 // window owner threads. |
| 38 std::unique_ptr<SharedData> shared_data_; | 38 std::unique_ptr<SharedData> shared_data_; |
| 39 // The eventual parent of the window living in the browser process. |
| 39 HWND parent_window_; | 40 HWND parent_window_; |
| 41 // The window is initially created with this parent window. We need to keep it |
| 42 // around so that we can destroy it at the end. |
| 43 HWND initial_parent_window_; |
| 40 GpuChannelManager* manager_; | 44 GpuChannelManager* manager_; |
| 41 bool alpha_; | 45 bool alpha_; |
| 42 bool first_swap_; | 46 bool first_swap_; |
| 43 | 47 |
| 44 DISALLOW_COPY_AND_ASSIGN(ChildWindowSurfaceWin); | 48 DISALLOW_COPY_AND_ASSIGN(ChildWindowSurfaceWin); |
| 45 }; | 49 }; |
| 46 | 50 |
| 47 } // namespace gpu | 51 } // namespace gpu |
| 48 | 52 |
| 49 #endif // GPU_IPC_SERVICE_CHILD_WINDOW_SURFACE_WIN_H_ | 53 #endif // GPU_IPC_SERVICE_CHILD_WINDOW_SURFACE_WIN_H_ |
| OLD | NEW |