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

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

Issue 1968363002: SurfaceAggregator should check whether output is secure when drawin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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_utils.h" 5 #include "cc/test/render_pass_test_utils.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "cc/quads/debug_border_draw_quad.h" 10 #include "cc/quads/debug_border_draw_quad.h"
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 240
241 StreamVideoDrawQuad* stream_video_quad = 241 StreamVideoDrawQuad* stream_video_quad =
242 to_pass->CreateAndAppendDrawQuad<StreamVideoDrawQuad>(); 242 to_pass->CreateAndAppendDrawQuad<StreamVideoDrawQuad>();
243 stream_video_quad->SetNew(shared_state, rect, opaque_rect, visible_rect, 243 stream_video_quad->SetNew(shared_state, rect, opaque_rect, visible_rect,
244 resource6, gfx::Size(), gfx::Transform()); 244 resource6, gfx::Size(), gfx::Transform());
245 245
246 TextureDrawQuad* texture_quad = 246 TextureDrawQuad* texture_quad =
247 to_pass->CreateAndAppendDrawQuad<TextureDrawQuad>(); 247 to_pass->CreateAndAppendDrawQuad<TextureDrawQuad>();
248 texture_quad->SetNew(shared_state, rect, opaque_rect, visible_rect, resource1, 248 texture_quad->SetNew(shared_state, rect, opaque_rect, visible_rect, resource1,
249 false, gfx::PointF(0.f, 0.f), gfx::PointF(1.f, 1.f), 249 false, gfx::PointF(0.f, 0.f), gfx::PointF(1.f, 1.f),
250 SK_ColorTRANSPARENT, vertex_opacity, false, false); 250 SK_ColorTRANSPARENT, vertex_opacity, false, false,
251 false);
251 252
252 TextureDrawQuad* mailbox_texture_quad = 253 TextureDrawQuad* mailbox_texture_quad =
253 to_pass->CreateAndAppendDrawQuad<TextureDrawQuad>(); 254 to_pass->CreateAndAppendDrawQuad<TextureDrawQuad>();
254 mailbox_texture_quad->SetNew(shared_state, rect, opaque_rect, visible_rect, 255 mailbox_texture_quad->SetNew(shared_state, rect, opaque_rect, visible_rect,
255 resource8, false, gfx::PointF(0.f, 0.f), 256 resource8, false, gfx::PointF(0.f, 0.f),
256 gfx::PointF(1.f, 1.f), SK_ColorTRANSPARENT, 257 gfx::PointF(1.f, 1.f), SK_ColorTRANSPARENT,
257 vertex_opacity, false, false); 258 vertex_opacity, false, false, false);
258 259
259 TileDrawQuad* scaled_tile_quad = 260 TileDrawQuad* scaled_tile_quad =
260 to_pass->CreateAndAppendDrawQuad<TileDrawQuad>(); 261 to_pass->CreateAndAppendDrawQuad<TileDrawQuad>();
261 scaled_tile_quad->SetNew(shared_state, rect, opaque_rect, visible_rect, 262 scaled_tile_quad->SetNew(shared_state, rect, opaque_rect, visible_rect,
262 resource2, gfx::RectF(0, 0, 50, 50), 263 resource2, gfx::RectF(0, 0, 50, 50),
263 gfx::Size(50, 50), false, false); 264 gfx::Size(50, 50), false, false);
264 265
265 SharedQuadState* transformed_state = 266 SharedQuadState* transformed_state =
266 to_pass->CreateAndAppendSharedQuadState(); 267 to_pass->CreateAndAppendSharedQuadState();
267 transformed_state->CopyFrom(shared_state); 268 transformed_state->CopyFrom(shared_state);
(...skipping 28 matching lines...) Expand all
296 to_pass->CreateAndAppendDrawQuad<YUVVideoDrawQuad>(); 297 to_pass->CreateAndAppendDrawQuad<YUVVideoDrawQuad>();
297 yuv_quad->SetNew(shared_state2, rect, opaque_rect, visible_rect, 298 yuv_quad->SetNew(shared_state2, rect, opaque_rect, visible_rect,
298 gfx::RectF(.0f, .0f, 100.0f, 100.0f), 299 gfx::RectF(.0f, .0f, 100.0f, 100.0f),
299 gfx::RectF(.0f, .0f, 50.0f, 50.0f), gfx::Size(100, 100), 300 gfx::RectF(.0f, .0f, 50.0f, 50.0f), gfx::Size(100, 100),
300 gfx::Size(50, 50), plane_resources[0], plane_resources[1], 301 gfx::Size(50, 50), plane_resources[0], plane_resources[1],
301 plane_resources[2], plane_resources[3], color_space, 0.0, 302 plane_resources[2], plane_resources[3], color_space, 0.0,
302 1.0); 303 1.0);
303 } 304 }
304 305
305 } // namespace cc 306 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698