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

Unified Diff: content/common/cc_messages_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 | « content/common/cc_messages.h ('k') | content/common/frame_param_macros.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/cc_messages_unittest.cc
diff --git a/content/common/cc_messages_unittest.cc b/content/common/cc_messages_unittest.cc
index 1a20504c679aea1489a2b1a08a4f9bc28b07dfe3..58128b7c8be726d277507329d32a66eeeba67e27 100644
--- a/content/common/cc_messages_unittest.cc
+++ b/content/common/cc_messages_unittest.cc
@@ -212,7 +212,7 @@ class CCMessagesTest : public testing::Test {
b.mailbox_holder.mailbox.name[i]);
}
EXPECT_EQ(a.mailbox_holder.texture_target, b.mailbox_holder.texture_target);
- EXPECT_EQ(a.mailbox_holder.sync_point, b.mailbox_holder.sync_point);
+ EXPECT_EQ(a.mailbox_holder.sync_token, b.mailbox_holder.sync_token);
EXPECT_EQ(a.is_overlay_candidate, b.is_overlay_candidate);
}
};
@@ -619,8 +619,8 @@ TEST_F(CCMessagesTest, UnusedSharedQuadStates) {
TEST_F(CCMessagesTest, Resources) {
IPC::Message msg(1, 2, IPC::Message::PRIORITY_NORMAL);
gfx::Size arbitrary_size(757, 1281);
- unsigned int arbitrary_uint1 = 71234838;
- unsigned int arbitrary_uint2 = 53589793;
+ gpu::SyncToken arbitrary_token1(71234838);
+ gpu::SyncToken arbitrary_token2(53589793);
GLbyte arbitrary_mailbox1[GL_MAILBOX_SIZE_CHROMIUM] = {
1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2,
@@ -639,7 +639,7 @@ TEST_F(CCMessagesTest, Resources) {
arbitrary_resource1.size = gfx::Size(37189, 123123);
arbitrary_resource1.mailbox_holder.mailbox.SetName(arbitrary_mailbox1);
arbitrary_resource1.mailbox_holder.texture_target = GL_TEXTURE_2D;
- arbitrary_resource1.mailbox_holder.sync_point = arbitrary_uint1;
+ arbitrary_resource1.mailbox_holder.sync_token = arbitrary_token1;
arbitrary_resource1.is_overlay_candidate = true;
TransferableResource arbitrary_resource2;
@@ -649,7 +649,7 @@ TEST_F(CCMessagesTest, Resources) {
arbitrary_resource2.size = gfx::Size(89123, 23789);
arbitrary_resource2.mailbox_holder.mailbox.SetName(arbitrary_mailbox2);
arbitrary_resource2.mailbox_holder.texture_target = GL_TEXTURE_EXTERNAL_OES;
- arbitrary_resource2.mailbox_holder.sync_point = arbitrary_uint2;
+ arbitrary_resource2.mailbox_holder.sync_token = arbitrary_token2;
arbitrary_resource2.is_overlay_candidate = false;
scoped_ptr<RenderPass> renderpass_in = RenderPass::Create();
« no previous file with comments | « content/common/cc_messages.h ('k') | content/common/frame_param_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698