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

Unified Diff: ui/compositor/layer_unittest.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 | « ui/compositor/layer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer_unittest.cc
diff --git a/ui/compositor/layer_unittest.cc b/ui/compositor/layer_unittest.cc
index 7b96199ab56a4d59e1d4ee1e9542df8322b4ecb8..935bfa7f6f4ef06c2e69a84e8450755642a1c232 100644
--- a/ui/compositor/layer_unittest.cc
+++ b/ui/compositor/layer_unittest.cc
@@ -707,7 +707,7 @@ TEST_F(LayerWithNullDelegateTest, EscapedDebugNames) {
EXPECT_EQ(name, roundtrip);
}
-void ReturnMailbox(bool* run, uint32 sync_point, bool is_lost) {
+void ReturnMailbox(bool* run, const gpu::SyncToken& sync_token, bool is_lost) {
*run = true;
}
@@ -728,7 +728,7 @@ TEST_F(LayerWithNullDelegateTest, SwitchLayerPreservesCCLayerState) {
cc::Layer* before_layer = l1->cc_layer_for_testing();
bool callback1_run = false;
- cc::TextureMailbox mailbox(gpu::Mailbox::Generate(), 0, 0);
+ cc::TextureMailbox mailbox(gpu::Mailbox::Generate(), gpu::SyncToken(), 0);
l1->SetTextureMailbox(mailbox, cc::SingleReleaseCallback::Create(
base::Bind(ReturnMailbox, &callback1_run)),
gfx::Size(10, 10));
@@ -744,7 +744,7 @@ TEST_F(LayerWithNullDelegateTest, SwitchLayerPreservesCCLayerState) {
EXPECT_FALSE(callback1_run);
bool callback2_run = false;
- mailbox = cc::TextureMailbox(gpu::Mailbox::Generate(), 0, 0);
+ mailbox = cc::TextureMailbox(gpu::Mailbox::Generate(), gpu::SyncToken(), 0);
l1->SetTextureMailbox(mailbox, cc::SingleReleaseCallback::Create(
base::Bind(ReturnMailbox, &callback2_run)),
gfx::Size(10, 10));
@@ -765,7 +765,7 @@ TEST_F(LayerWithNullDelegateTest, SwitchLayerPreservesCCLayerState) {
// Back to a texture, without changing the bounds of the layer or the texture.
bool callback3_run = false;
- mailbox = cc::TextureMailbox(gpu::Mailbox::Generate(), 0, 0);
+ mailbox = cc::TextureMailbox(gpu::Mailbox::Generate(), gpu::SyncToken(), 0);
l1->SetTextureMailbox(mailbox, cc::SingleReleaseCallback::Create(
base::Bind(ReturnMailbox, &callback3_run)),
gfx::Size(10, 10));
« no previous file with comments | « ui/compositor/layer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698