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

Side by Side Diff: cc/test/render_pass_test_common.cc

Issue 1142343008: cc: Rework overlays to not use the ResourceProvider and pass texture size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix more tests Created 5 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/test/render_pass_test_common.h" 5 #include "cc/test/render_pass_test_common.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "cc/quads/checkerboard_draw_quad.h" 8 #include "cc/quads/checkerboard_draw_quad.h"
9 #include "cc/quads/debug_border_draw_quad.h" 9 #include "cc/quads/debug_border_draw_quad.h"
10 #include "cc/quads/io_surface_draw_quad.h" 10 #include "cc/quads/io_surface_draw_quad.h"
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 FilterOperations()); 137 FilterOperations());
138 } 138 }
139 139
140 SolidColorDrawQuad* solid_color_quad = 140 SolidColorDrawQuad* solid_color_quad =
141 this->CreateAndAppendDrawQuad<SolidColorDrawQuad>(); 141 this->CreateAndAppendDrawQuad<SolidColorDrawQuad>();
142 solid_color_quad->SetNew( 142 solid_color_quad->SetNew(
143 shared_state, rect, visible_rect, SK_ColorRED, false); 143 shared_state, rect, visible_rect, SK_ColorRED, false);
144 144
145 StreamVideoDrawQuad* stream_video_quad = 145 StreamVideoDrawQuad* stream_video_quad =
146 this->CreateAndAppendDrawQuad<StreamVideoDrawQuad>(); 146 this->CreateAndAppendDrawQuad<StreamVideoDrawQuad>();
147 stream_video_quad->SetNew(shared_state, 147 stream_video_quad->SetNew(shared_state, rect, opaque_rect, visible_rect,
148 rect, 148 resource6, gfx::Size(), false, gfx::Transform());
149 opaque_rect,
150 visible_rect,
151 resource6,
152 gfx::Transform());
153 149
154 TextureDrawQuad* texture_quad = 150 TextureDrawQuad* texture_quad =
155 this->CreateAndAppendDrawQuad<TextureDrawQuad>(); 151 this->CreateAndAppendDrawQuad<TextureDrawQuad>();
156 texture_quad->SetNew(shared_state, 152 texture_quad->SetNew(shared_state,
157 rect, 153 rect,
158 opaque_rect, 154 opaque_rect,
159 visible_rect, 155 visible_rect,
160 resource1, 156 resource1,
161 false, 157 false,
162 gfx::PointF(0.f, 0.f), 158 gfx::PointF(0.f, 0.f),
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 YUVVideoDrawQuad* yuv_quad = 240 YUVVideoDrawQuad* yuv_quad =
245 this->CreateAndAppendDrawQuad<YUVVideoDrawQuad>(); 241 this->CreateAndAppendDrawQuad<YUVVideoDrawQuad>();
246 yuv_quad->SetNew(shared_state2, rect, opaque_rect, visible_rect, 242 yuv_quad->SetNew(shared_state2, rect, opaque_rect, visible_rect,
247 gfx::RectF(.0f, .0f, 100.0f, 100.0f), 243 gfx::RectF(.0f, .0f, 100.0f, 100.0f),
248 gfx::RectF(.0f, .0f, 50.0f, 50.0f), gfx::Size(100, 100), 244 gfx::RectF(.0f, .0f, 50.0f, 50.0f), gfx::Size(100, 100),
249 gfx::Size(50, 50), plane_resources[0], plane_resources[1], 245 gfx::Size(50, 50), plane_resources[0], plane_resources[1],
250 plane_resources[2], plane_resources[3], color_space); 246 plane_resources[2], plane_resources[3], color_space);
251 } 247 }
252 248
253 } // namespace cc 249 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698