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

Unified Diff: cc/quads/render_pass.cc

Issue 2693723002: cc: Move output color space from DrawingFrame to RenderPass (Closed)
Patch Set: Fix typo Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: cc/quads/render_pass.cc
diff --git a/cc/quads/render_pass.cc b/cc/quads/render_pass.cc
index fd741a55732e865a42b56d4d9f0d9bc9a70dfd84..3ad5fb0cf83c75a8c94f6fcd8f8c9365c0b17791 100644
--- a/cc/quads/render_pass.cc
+++ b/cc/quads/render_pass.cc
@@ -90,7 +90,8 @@ std::unique_ptr<RenderPass> RenderPass::Copy(int new_id) const {
std::unique_ptr<RenderPass> copy_pass(
Create(shared_quad_state_list.size(), quad_list.size()));
copy_pass->SetAll(new_id, output_rect, damage_rect, transform_to_root_target,
- filters, background_filters, has_transparent_background);
+ filters, background_filters, color_space,
+ has_transparent_background);
return copy_pass;
}
@@ -102,7 +103,8 @@ std::unique_ptr<RenderPass> RenderPass::DeepCopy() const {
std::unique_ptr<RenderPass> copy_pass(
Create(shared_quad_state_list.size(), quad_list.size()));
copy_pass->SetAll(id, output_rect, damage_rect, transform_to_root_target,
- filters, background_filters, has_transparent_background);
+ filters, background_filters, color_space,
+ has_transparent_background);
for (auto* shared_quad_state : shared_quad_state_list) {
SharedQuadState* copy_shared_quad_state =
copy_pass->CreateAndAppendSharedQuadState();
@@ -164,6 +166,7 @@ void RenderPass::SetAll(int id,
const gfx::Transform& transform_to_root_target,
const FilterOperations& filters,
const FilterOperations& background_filters,
+ const gfx::ColorSpace& color_space,
bool has_transparent_background) {
DCHECK(id);
@@ -173,6 +176,7 @@ void RenderPass::SetAll(int id,
this->transform_to_root_target = transform_to_root_target;
this->filters = filters;
this->background_filters = background_filters;
+ this->color_space = color_space;
this->has_transparent_background = has_transparent_background;
DCHECK(quad_list.empty());

Powered by Google App Engine
This is Rietveld 408576698