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

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

Issue 18432002: Blend TextureLayer background-color at draw time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: resolved conflicts with TOT Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « cc/quads/texture_draw_quad.cc ('k') | cc/trees/layer_tree_host_unittest_delegated.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "cc/quads/checkerboard_draw_quad.h" 7 #include "cc/quads/checkerboard_draw_quad.h"
8 #include "cc/quads/debug_border_draw_quad.h" 8 #include "cc/quads/debug_border_draw_quad.h"
9 #include "cc/quads/io_surface_draw_quad.h" 9 #include "cc/quads/io_surface_draw_quad.h"
10 #include "cc/quads/render_pass_draw_quad.h" 10 #include "cc/quads/render_pass_draw_quad.h"
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 158
159 scoped_ptr<cc::TextureDrawQuad> texture_quad = 159 scoped_ptr<cc::TextureDrawQuad> texture_quad =
160 cc::TextureDrawQuad::Create(); 160 cc::TextureDrawQuad::Create();
161 texture_quad->SetNew(shared_state.get(), 161 texture_quad->SetNew(shared_state.get(),
162 rect, 162 rect,
163 opaque_rect, 163 opaque_rect,
164 resource1, 164 resource1,
165 false, 165 false,
166 gfx::PointF(0.f, 0.f), 166 gfx::PointF(0.f, 0.f),
167 gfx::PointF(1.f, 1.f), 167 gfx::PointF(1.f, 1.f),
168 SK_ColorTRANSPARENT,
168 vertex_opacity, 169 vertex_opacity,
169 false); 170 false);
170 AppendQuad(texture_quad.PassAs<DrawQuad>()); 171 AppendQuad(texture_quad.PassAs<DrawQuad>());
171 172
172 scoped_ptr<cc::TileDrawQuad> scaled_tile_quad = 173 scoped_ptr<cc::TileDrawQuad> scaled_tile_quad =
173 cc::TileDrawQuad::Create(); 174 cc::TileDrawQuad::Create();
174 scaled_tile_quad->SetNew(shared_state.get(), 175 scaled_tile_quad->SetNew(shared_state.get(),
175 rect, 176 rect,
176 opaque_rect, 177 opaque_rect,
177 resource2, 178 resource2,
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 plane_resources[1], 227 plane_resources[1],
227 plane_resources[2], 228 plane_resources[2],
228 plane_resources[3]); 229 plane_resources[3]);
229 AppendQuad(yuv_quad.PassAs<DrawQuad>()); 230 AppendQuad(yuv_quad.PassAs<DrawQuad>());
230 231
231 AppendSharedQuadState(transformed_state.Pass()); 232 AppendSharedQuadState(transformed_state.Pass());
232 AppendSharedQuadState(shared_state.Pass()); 233 AppendSharedQuadState(shared_state.Pass());
233 } 234 }
234 235
235 } // namespace cc 236 } // namespace cc
OLDNEW
« no previous file with comments | « cc/quads/texture_draw_quad.cc ('k') | cc/trees/layer_tree_host_unittest_delegated.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698