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 #include "gpu/ipc/service/child_window_surface_win.h" | 5 #include "gpu/ipc/service/child_window_surface_win.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
158 gfx::SwapResult ChildWindowSurfaceWin::PostSubBuffer(int x, | 158 gfx::SwapResult ChildWindowSurfaceWin::PostSubBuffer(int x, |
159 int y, | 159 int y, |
160 int width, | 160 int width, |
161 int height) { | 161 int height) { |
162 gfx::SwapResult result = | 162 gfx::SwapResult result = |
163 NativeViewGLSurfaceEGL::PostSubBuffer(x, y, width, height); | 163 NativeViewGLSurfaceEGL::PostSubBuffer(x, y, width, height); |
164 child_window_.ClearInvalidContents(); | 164 child_window_.ClearInvalidContents(); |
165 return result; | 165 return result; |
166 } | 166 } |
167 | 167 |
168 void ChildWindowSurfaceWin::WaitForSnapshotRendering() { | |
169 glFinish(); | |
Ken Russell (switch to Gerrit)
2017/05/18 01:02:10
Should there be a DCHECK that there's an OpenGL co
| |
170 } | |
171 | |
168 ChildWindowSurfaceWin::~ChildWindowSurfaceWin() { | 172 ChildWindowSurfaceWin::~ChildWindowSurfaceWin() { |
169 } | 173 } |
170 | 174 |
171 } // namespace gpu | 175 } // namespace gpu |
OLD | NEW |