summaryrefslogtreecommitdiffstats
path: root/cc/test/test_web_graphics_context_3d.h
diff options
context:
space:
mode:
authorhubbe@chromium.org <hubbe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-04 06:16:46 +0000
committerhubbe@chromium.org <hubbe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-04 06:16:46 +0000
commit4cbc65228c4ae606518a4223c47865dbb8c2d210 (patch)
treeba447149933a7284921fa34b178b8060eb1ff377 /cc/test/test_web_graphics_context_3d.h
parent14263fe6425f8078770836253747a0af5381cba0 (diff)
downloadchromium_src-4cbc65228c4ae606518a4223c47865dbb8c2d210.zip
chromium_src-4cbc65228c4ae606518a4223c47865dbb8c2d210.tar.gz
chromium_src-4cbc65228c4ae606518a4223c47865dbb8c2d210.tar.bz2
Perform glReadPixels with PBOs in the gpu, if PBOs are available.
Make GL_ASYNC_READ_PIXELS_COMPLETED_CHROMIUM wait for readpixel transfers. PLEASE NOTE: glMapBuffer does not wait for the readpixels transfer to complete anymore. Nobody is currently relying on that behaviour. Update gl_helper.cc and gl_renderer.cc to use queries. This CL is the same as https://codereview.chromium.org/16831004/ but includes fixes for: OutOfProcessPPAPITests.Graphics3D (removed a check in query_tracker.cc) GLReadbackTest.ReadPixelsWithPBO (removed, no longer a valid test) GLReadbackTest.ReadPixelsWithPBOAndQuery (now uses the correct query) BUG=249925 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=209873 Review URL: https://chromiumcodereview.appspot.com/18555006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210138 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/test_web_graphics_context_3d.h')
-rw-r--r--cc/test/test_web_graphics_context_3d.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cc/test/test_web_graphics_context_3d.h b/cc/test/test_web_graphics_context_3d.h
index 4855b0a..0652681 100644
--- a/cc/test/test_web_graphics_context_3d.h
+++ b/cc/test/test_web_graphics_context_3d.h
@@ -110,6 +110,8 @@ class TestWebGraphicsContext3D : public FakeWebGraphicsContext3D {
// Takes ownership of the |callback|.
virtual void signalSyncPoint(unsigned sync_point,
WebGraphicsSyncPointCallback* callback);
+ virtual void signalQuery(WebKit::WebGLId query,
+ WebGraphicsSyncPointCallback* callback);
virtual void setSwapBuffersCompleteCallbackCHROMIUM(
WebGraphicsSwapBuffersCompleteCallbackCHROMIUM* callback);