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

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: Fix mock gpu video accelerator factory Created 5 years, 2 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
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..5bc1fa51be87d6ff039158f71dd19502b3c4ccbc 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,10 +272,14 @@ class TestWebGraphicsContext3D {
GLuint plane) {}
virtual unsigned insertSyncPoint();
- virtual void waitSyncPoint(unsigned sync_point);
+ virtual void waitSyncPoint(unsigned sync_point, const GLbyte* sync_token);
unsigned last_waited_sync_point() const { return last_waited_sync_point_; }
+ const gpu::SyncToken& last_waited_sync_token() const {
dcheng 2015/10/27 19:09:28 Is this supposed to be called somewhere?
David Yen 2015/10/28 22:03:43 I originally had them both live side by side until
+ return last_waited_sync_token_;
+ }
+
const ContextProvider::Capabilities& test_capabilities() const {
return test_capabilities_;
}
@@ -474,6 +479,7 @@ class TestWebGraphicsContext3D {
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_;

Powered by Google App Engine
This is Rietveld 408576698