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

Unified Diff: cc/test/test_web_graphics_context_3d.h

Issue 1479673003: Verify resource provider sync tokens before sending to parent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed unit test so it doesn't expect dummy fence sync Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/test_gles2_interface.cc ('k') | cc/test/test_web_graphics_context_3d.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_web_graphics_context_3d.h
diff --git a/cc/test/test_web_graphics_context_3d.h b/cc/test/test_web_graphics_context_3d.h
index 08447f7ce64ce8cfb15667b4097d07233acf4597..fba2b8d88e1b405a66ea523ea6fdc55d84f8ddad 100644
--- a/cc/test/test_web_graphics_context_3d.h
+++ b/cc/test/test_web_graphics_context_3d.h
@@ -275,8 +275,11 @@ class TestWebGraphicsContext3D {
GLuint io_surface_id,
GLuint plane) {}
- virtual unsigned insertSyncPoint();
+ virtual GLuint insertSyncPoint();
+ virtual GLuint64 insertFenceSync();
+ virtual void genSyncToken(GLuint64 fence_sync, GLbyte* sync_token);
virtual void waitSyncToken(const GLbyte* sync_token);
+ virtual void verifySyncTokens(GLbyte** sync_tokens, GLsizei count);
const gpu::SyncToken& last_waited_sync_token() const {
return last_waited_sync_token_;
@@ -482,7 +485,7 @@ class TestWebGraphicsContext3D {
TestContextSupport* test_support_;
gfx::Rect update_rect_;
UpdateType last_update_type_;
- unsigned next_insert_sync_point_;
+ GLuint64 next_insert_fence_sync_;
gpu::SyncToken last_waited_sync_token_;
int unpack_alignment_;
« no previous file with comments | « cc/test/test_gles2_interface.cc ('k') | cc/test/test_web_graphics_context_3d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698