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

Unified Diff: content/common/cc_messages_unittest.cc

Issue 11316128: Send compositor frame IPC with metadata. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Clean up and rebase to 173167 Created 8 years 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: content/common/cc_messages_unittest.cc
diff --git a/content/common/cc_messages_unittest.cc b/content/common/cc_messages_unittest.cc
index 924223cdf1b0fa2b6f0c83498b54bbc8df245841..da92c4e83e0814bef50df61af9d155756ef0ee52 100644
--- a/content/common/cc_messages_unittest.cc
+++ b/content/common/cc_messages_unittest.cc
@@ -6,12 +6,12 @@
#include <string.h>
-#include "cc/compositor_frame.h"
+#include "cc/delegated_compositor_frame.h"
#include "ipc/ipc_message.h"
#include "testing/gtest/include/gtest/gtest.h"
using cc::CheckerboardDrawQuad;
-using cc::CompositorFrame;
+using cc::DelegatedCompositorFrame;
using cc::DebugBorderDrawQuad;
using cc::DrawQuad;
using cc::IOSurfaceDrawQuad;
@@ -413,15 +413,16 @@ TEST_F(CCMessagesTest, AllQuads) {
EXPECT_EQ(same_shared_quad_state_cmp, same_shared_quad_state_in);
}
- CompositorFrame frame_in;
+ DelegatedCompositorFrame frame_in;
frame_in.size = arbitrary_size1;
frame_in.render_pass_list.append(pass_in.Pass());
- IPC::ParamTraits<CompositorFrame>::Write(&msg, frame_in);
+ IPC::ParamTraits<DelegatedCompositorFrame>::Write(&msg, frame_in);
- CompositorFrame frame_out;
+ DelegatedCompositorFrame frame_out;
PickleIterator iter(msg);
- EXPECT_TRUE(IPC::ParamTraits<CompositorFrame>::Read(&msg, &iter, &frame_out));
+ EXPECT_TRUE(IPC::ParamTraits<DelegatedCompositorFrame>::Read(&msg,
+ &iter, &frame_out));
EXPECT_EQ(arbitrary_size1, frame_out.size);
@@ -478,18 +479,19 @@ TEST_F(CCMessagesTest, Resources) {
arbitrary_resource2.size = gfx::Size(89123, 23789);
arbitrary_resource2.mailbox.setName(arbitrary_mailbox2);
- CompositorFrame frame_in;
+ DelegatedCompositorFrame frame_in;
frame_in.size = arbitrary_size;
frame_in.resource_list.sync_point = arbitrary_uint;
frame_in.resource_list.resources.push_back(arbitrary_resource1);
frame_in.resource_list.resources.push_back(arbitrary_resource2);
- IPC::ParamTraits<CompositorFrame>::Write(&msg, frame_in);
+ IPC::ParamTraits<DelegatedCompositorFrame>::Write(&msg, frame_in);
- CompositorFrame frame_out;
+ DelegatedCompositorFrame frame_out;
PickleIterator iter(msg);
- EXPECT_TRUE(IPC::ParamTraits<CompositorFrame>::Read(&msg, &iter, &frame_out));
+ EXPECT_TRUE(IPC::ParamTraits<DelegatedCompositorFrame>::Read(&msg,
+ &iter, &frame_out));
EXPECT_EQ(arbitrary_size.ToString(), frame_out.size.ToString());
EXPECT_EQ(arbitrary_uint, frame_out.resource_list.sync_point);

Powered by Google App Engine
This is Rietveld 408576698