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

Unified Diff: cc/ipc/cc_param_traits_unittest.cc

Issue 2382873002: Replace usage of SurfaceId's client_id with FrameSinkId (Closed)
Patch Set: Rebased Created 4 years, 2 months 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/ipc/cc_param_traits_macros.h ('k') | cc/ipc/frame_sink_id.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/ipc/cc_param_traits_unittest.cc
diff --git a/cc/ipc/cc_param_traits_unittest.cc b/cc/ipc/cc_param_traits_unittest.cc
index 36dc2af3ff925d247b87b1fdd04260c2886eb9a0..3010a004a86ba30bdcf1fe5886e00a6a35ae253c 100644
--- a/cc/ipc/cc_param_traits_unittest.cc
+++ b/cc/ipc/cc_param_traits_unittest.cc
@@ -45,6 +45,8 @@ using gfx::Transform;
namespace content {
namespace {
+static constexpr cc::FrameSinkId kArbitraryFrameSinkId(1, 1);
+
class CCParamTraitsTest : public testing::Test {
protected:
void Compare(const RenderPass* a, const RenderPass* b) {
@@ -359,7 +361,7 @@ TEST_F(CCParamTraitsTest, AllQuads) {
pass_cmp->CopyFromAndAppendDrawQuad(streamvideo_in,
streamvideo_in->shared_quad_state);
- cc::SurfaceId arbitrary_surface_id(0, 3, 0);
+ cc::SurfaceId arbitrary_surface_id(kArbitraryFrameSinkId, 3, 0);
SurfaceDrawQuad* surface_in =
pass_in->CreateAndAppendDrawQuad<SurfaceDrawQuad>();
surface_in->SetAll(shared_state3_in, arbitrary_rect2,
« no previous file with comments | « cc/ipc/cc_param_traits_macros.h ('k') | cc/ipc/frame_sink_id.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698