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

Side by Side Diff: cc/surfaces/surface_aggregator_unittest.cc

Issue 332873005: Rendering context information added to SharedQuadState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: layer_tree_json_parser fix Created 6 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
« no previous file with comments | « cc/surfaces/surface_aggregator_test_helpers.cc ('k') | cc/surfaces/surfaces_pixeltest.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/output/compositor_frame.h" 5 #include "cc/output/compositor_frame.h"
6 #include "cc/output/delegated_frame_data.h" 6 #include "cc/output/delegated_frame_data.h"
7 #include "cc/quads/render_pass.h" 7 #include "cc/quads/render_pass.h"
8 #include "cc/quads/render_pass_draw_quad.h" 8 #include "cc/quads/render_pass_draw_quad.h"
9 #include "cc/quads/solid_color_draw_quad.h" 9 #include "cc/quads/solid_color_draw_quad.h"
10 #include "cc/quads/surface_draw_quad.h" 10 #include "cc/quads/surface_draw_quad.h"
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 float opacity = 1.f; 423 float opacity = 1.f;
424 424
425 bool force_anti_aliasing_off = false; 425 bool force_anti_aliasing_off = false;
426 SharedQuadState* sqs = pass->CreateAndAppendSharedQuadState(); 426 SharedQuadState* sqs = pass->CreateAndAppendSharedQuadState();
427 sqs->SetAll(content_to_target_transform, 427 sqs->SetAll(content_to_target_transform,
428 content_bounds, 428 content_bounds,
429 visible_content_rect, 429 visible_content_rect,
430 clip_rect, 430 clip_rect,
431 is_clipped, 431 is_clipped,
432 opacity, 432 opacity,
433 blend_mode); 433 blend_mode,
434 0);
434 435
435 scoped_ptr<SolidColorDrawQuad> color_quad = SolidColorDrawQuad::Create(); 436 scoped_ptr<SolidColorDrawQuad> color_quad = SolidColorDrawQuad::Create();
436 color_quad->SetNew(pass->shared_quad_state_list.back(), 437 color_quad->SetNew(pass->shared_quad_state_list.back(),
437 visible_content_rect, 438 visible_content_rect,
438 visible_content_rect, 439 visible_content_rect,
439 SK_ColorGREEN, 440 SK_ColorGREEN,
440 force_anti_aliasing_off); 441 force_anti_aliasing_off);
441 pass->quad_list.push_back(color_quad.PassAs<DrawQuad>()); 442 pass->quad_list.push_back(color_quad.PassAs<DrawQuad>());
442 } 443 }
443 444
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 DrawQuad* quad = aggregated_pass_list[1]->quad_list.at(i); 699 DrawQuad* quad = aggregated_pass_list[1]->quad_list.at(i);
699 EXPECT_EQ(expected_root_pass_quad_transforms[i].ToString(), 700 EXPECT_EQ(expected_root_pass_quad_transforms[i].ToString(),
700 quad->quadTransform().ToString()) 701 quad->quadTransform().ToString())
701 << i; 702 << i;
702 } 703 }
703 } 704 }
704 705
705 } // namespace 706 } // namespace
706 } // namespace cc 707 } // namespace cc
707 708
OLDNEW
« no previous file with comments | « cc/surfaces/surface_aggregator_test_helpers.cc ('k') | cc/surfaces/surfaces_pixeltest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698