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

Unified Diff: cc/test/test_web_graphics_context_3d.cc

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_web_graphics_context_3d.h ('k') | cc/trees/layer_tree_host_perftest.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.cc
diff --git a/cc/test/test_web_graphics_context_3d.cc b/cc/test/test_web_graphics_context_3d.cc
index 1e69bcbb8cc98bc4c9c288bd6909289f5c2b8981..d974ca97671eaeb79699d68268a4457a2122ace5 100644
--- a/cc/test/test_web_graphics_context_3d.cc
+++ b/cc/test/test_web_graphics_context_3d.cc
@@ -67,7 +67,6 @@ TestWebGraphicsContext3D::TestWebGraphicsContext3D()
test_support_(NULL),
last_update_type_(NO_UPDATE),
next_insert_sync_point_(1),
- last_waited_sync_point_(0),
unpack_alignment_(4),
bound_buffer_(0),
weak_ptr_factory_(this) {
@@ -651,9 +650,13 @@ unsigned TestWebGraphicsContext3D::insertSyncPoint() {
return next_insert_sync_point_++;
}
-void TestWebGraphicsContext3D::waitSyncPoint(unsigned sync_point) {
- if (sync_point)
- last_waited_sync_point_ = sync_point;
+void TestWebGraphicsContext3D::waitSyncToken(const GLbyte* sync_token) {
+ if (sync_token) {
+ gpu::SyncToken sync_token_data;
+ memcpy(sync_token_data.GetData(), sync_token, sizeof(sync_token_data));
+ if (sync_token_data.HasData())
+ last_waited_sync_token_ = sync_token_data;
+ }
}
size_t TestWebGraphicsContext3D::NumTextures() const {
« no previous file with comments | « cc/test/test_web_graphics_context_3d.h ('k') | cc/trees/layer_tree_host_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698