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

Side by Side Diff: cc/output/delegating_renderer.cc

Issue 2102203003: Color: Plumb color profile from ui::Compositor to cc::DirectRenderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on top of s/ColorProfile/ColorSpace/ Created 4 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
« no previous file with comments | « cc/output/delegating_renderer.h ('k') | cc/output/direct_renderer.h » ('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/output/delegating_renderer.h" 5 #include "cc/output/delegating_renderer.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 } 68 }
69 69
70 DelegatingRenderer::~DelegatingRenderer() {} 70 DelegatingRenderer::~DelegatingRenderer() {}
71 71
72 const RendererCapabilitiesImpl& DelegatingRenderer::Capabilities() const { 72 const RendererCapabilitiesImpl& DelegatingRenderer::Capabilities() const {
73 return capabilities_; 73 return capabilities_;
74 } 74 }
75 75
76 void DelegatingRenderer::DrawFrame(RenderPassList* render_passes_in_draw_order, 76 void DelegatingRenderer::DrawFrame(RenderPassList* render_passes_in_draw_order,
77 float device_scale_factor, 77 float device_scale_factor,
78 const gfx::ColorSpace& device_color_space,
78 const gfx::Rect& device_viewport_rect, 79 const gfx::Rect& device_viewport_rect,
79 const gfx::Rect& device_clip_rect, 80 const gfx::Rect& device_clip_rect,
80 bool disable_picture_quad_image_filtering) { 81 bool disable_picture_quad_image_filtering) {
81 TRACE_EVENT0("cc", "DelegatingRenderer::DrawFrame"); 82 TRACE_EVENT0("cc", "DelegatingRenderer::DrawFrame");
82 83
83 DCHECK(!delegated_frame_data_); 84 DCHECK(!delegated_frame_data_);
84 85
85 delegated_frame_data_ = base::WrapUnique(new DelegatedFrameData); 86 delegated_frame_data_ = base::WrapUnique(new DelegatedFrameData);
86 DelegatedFrameData& out_data = *delegated_frame_data_; 87 DelegatedFrameData& out_data = *delegated_frame_data_;
87 // Move the render passes and resources into the |out_frame|. 88 // Move the render passes and resources into the |out_frame|.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 } 122 }
122 } 123 }
123 if (context_provider) { 124 if (context_provider) {
124 // If we are not visible, we ask the context to aggressively free resources. 125 // If we are not visible, we ask the context to aggressively free resources.
125 context_provider->ContextSupport()->SetAggressivelyFreeResources( 126 context_provider->ContextSupport()->SetAggressivelyFreeResources(
126 !visible()); 127 !visible());
127 } 128 }
128 } 129 }
129 130
130 } // namespace cc 131 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/delegating_renderer.h ('k') | cc/output/direct_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698