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

Side by Side Diff: gpu/ipc/service/child_window_surface_win.cc

Issue 2888993002: Do glFinish before sending snapshot latency info to browser (Closed)
Patch Set: add current tests Created 3 years, 7 months 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
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
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 DCHECK(gl::GLContext::GetCurrent()->IsCurrent(this));
170 glFinish();
171 }
172
168 ChildWindowSurfaceWin::~ChildWindowSurfaceWin() { 173 ChildWindowSurfaceWin::~ChildWindowSurfaceWin() {
169 } 174 }
170 175
171 } // namespace gpu 176 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/ipc/service/child_window_surface_win.h ('k') | gpu/ipc/service/direct_composition_surface_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698