OLD | NEW |
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/surfaces/surface_aggregator.h" | 5 #include "cc/surfaces/surface_aggregator.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 SharedQuadState* shared_quad_state = | 362 SharedQuadState* shared_quad_state = |
363 color_conversion_pass->CreateAndAppendSharedQuadState(); | 363 color_conversion_pass->CreateAndAppendSharedQuadState(); |
364 shared_quad_state->quad_layer_bounds = output_rect.size(); | 364 shared_quad_state->quad_layer_bounds = output_rect.size(); |
365 shared_quad_state->visible_quad_layer_rect = output_rect; | 365 shared_quad_state->visible_quad_layer_rect = output_rect; |
366 shared_quad_state->opacity = 1.f; | 366 shared_quad_state->opacity = 1.f; |
367 | 367 |
368 RenderPassDrawQuad* quad = | 368 RenderPassDrawQuad* quad = |
369 color_conversion_pass->CreateAndAppendDrawQuad<RenderPassDrawQuad>(); | 369 color_conversion_pass->CreateAndAppendDrawQuad<RenderPassDrawQuad>(); |
370 quad->SetNew(shared_quad_state, output_rect, output_rect, | 370 quad->SetNew(shared_quad_state, output_rect, output_rect, |
371 root_render_pass->id, 0, gfx::RectF(), gfx::Size(), | 371 root_render_pass->id, 0, gfx::RectF(), gfx::Size(), |
372 gfx::Vector2dF(), gfx::PointF(), gfx::RectF()); | 372 gfx::Vector2dF(), gfx::PointF(), gfx::RectF(output_rect)); |
373 dest_pass_list_->push_back(std::move(color_conversion_pass)); | 373 dest_pass_list_->push_back(std::move(color_conversion_pass)); |
374 } | 374 } |
375 | 375 |
376 SharedQuadState* SurfaceAggregator::CopySharedQuadState( | 376 SharedQuadState* SurfaceAggregator::CopySharedQuadState( |
377 const SharedQuadState* source_sqs, | 377 const SharedQuadState* source_sqs, |
378 const gfx::Transform& target_transform, | 378 const gfx::Transform& target_transform, |
379 const ClipData& clip_rect, | 379 const ClipData& clip_rect, |
380 RenderPass* dest_render_pass) { | 380 RenderPass* dest_render_pass) { |
381 SharedQuadState* copy_shared_quad_state = | 381 SharedQuadState* copy_shared_quad_state = |
382 dest_render_pass->CreateAndAppendSharedQuadState(); | 382 dest_render_pass->CreateAndAppendSharedQuadState(); |
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
928 } | 928 } |
929 | 929 |
930 void SurfaceAggregator::SetOutputColorSpace( | 930 void SurfaceAggregator::SetOutputColorSpace( |
931 const gfx::ColorSpace& blending_color_space, | 931 const gfx::ColorSpace& blending_color_space, |
932 const gfx::ColorSpace& output_color_space) { | 932 const gfx::ColorSpace& output_color_space) { |
933 blending_color_space_ = blending_color_space; | 933 blending_color_space_ = blending_color_space; |
934 output_color_space_ = output_color_space; | 934 output_color_space_ = output_color_space; |
935 } | 935 } |
936 | 936 |
937 } // namespace cc | 937 } // namespace cc |
OLD | NEW |