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

Unified Diff: cc/test/test_web_graphics_context_3d.h

Issue 1427543002: Modified old wait sync point functions to also accept new sync tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: format Created 5 years, 1 month 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 9aabf0d4433a43137f173289cb21e160b39ee45a..8fa4496845df301c8b94385b7ef3b9862f074d01 100644
--- a/cc/test/test_web_graphics_context_3d.h
+++ b/cc/test/test_web_graphics_context_3d.h
@@ -19,6 +19,7 @@
#include "cc/output/context_provider.h"
#include "cc/test/ordered_texture_map.h"
#include "cc/test/test_texture.h"
+#include "gpu/command_buffer/common/sync_token.h"
#include "third_party/khronos/GLES2/gl2.h"
#include "ui/gfx/geometry/rect.h"
@@ -271,9 +272,11 @@ class TestWebGraphicsContext3D {
GLuint plane) {}
virtual unsigned insertSyncPoint();
- virtual void waitSyncPoint(unsigned sync_point);
+ virtual void waitSyncToken(const GLbyte* sync_token);
- unsigned last_waited_sync_point() const { return last_waited_sync_point_; }
+ const gpu::SyncToken& last_waited_sync_token() const {
+ return last_waited_sync_token_;
+ }
const ContextProvider::Capabilities& test_capabilities() const {
return test_capabilities_;
@@ -473,7 +476,7 @@ class TestWebGraphicsContext3D {
gfx::Rect update_rect_;
UpdateType last_update_type_;
unsigned next_insert_sync_point_;
- unsigned last_waited_sync_point_;
+ gpu::SyncToken last_waited_sync_token_;
int unpack_alignment_;
unsigned bound_buffer_;
« 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