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

Unified Diff: cc/test/layer_tree_pixel_test.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: rebase + autogen 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
Index: cc/test/layer_tree_pixel_test.cc
diff --git a/cc/test/layer_tree_pixel_test.cc b/cc/test/layer_tree_pixel_test.cc
index a08211b0804ae9523be53d6e79c065c26b64b5fb..0b43d45d1ce14de34b71a13bf8bd2ee36f397d6c 100644
--- a/cc/test/layer_tree_pixel_test.cc
+++ b/cc/test/layer_tree_pixel_test.cc
@@ -228,8 +228,8 @@ scoped_ptr<SkBitmap> LayerTreePixelTest::CopyTextureMailboxToBitmap(
scoped_ptr<gpu::GLInProcessContext> context = CreateTestInProcessContext();
GLES2Interface* gl = context->GetImplementation();
- if (texture_mailbox.sync_point())
- gl->WaitSyncPointCHROMIUM(texture_mailbox.sync_point());
+ if (texture_mailbox.sync_token().HasData())
+ gl->WaitSyncTokenCHROMIUM(texture_mailbox.sync_token().GetConstData());
GLuint texture_id = 0;
gl->GenTextures(1, &texture_id);
@@ -283,6 +283,13 @@ scoped_ptr<SkBitmap> LayerTreePixelTest::CopyTextureMailboxToBitmap(
return bitmap.Pass();
}
+
+
+
+
+
+
+
dcheng 2015/11/03 07:39:29 Revert these empty lines?
David Yen 2015/11/03 18:09:28 Done.
void LayerTreePixelTest::Finish() {
scoped_ptr<gpu::GLInProcessContext> context = CreateTestInProcessContext();
GLES2Interface* gl = context->GetImplementation();

Powered by Google App Engine
This is Rietveld 408576698