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

Side by Side Diff: cc/output/direct_renderer.h

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.cc ('k') | cc/output/direct_renderer.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 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 #ifndef CC_OUTPUT_DIRECT_RENDERER_H_ 5 #ifndef CC_OUTPUT_DIRECT_RENDERER_H_
6 #define CC_OUTPUT_DIRECT_RENDERER_H_ 6 #define CC_OUTPUT_DIRECT_RENDERER_H_
7 7
8 #include <unordered_map> 8 #include <unordered_map>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 18 matching lines...) Expand all
29 // delegate rendering to another compositor. 29 // delegate rendering to another compositor.
30 class CC_EXPORT DirectRenderer : public Renderer { 30 class CC_EXPORT DirectRenderer : public Renderer {
31 public: 31 public:
32 ~DirectRenderer() override; 32 ~DirectRenderer() override;
33 33
34 void DecideRenderPassAllocationsForFrame( 34 void DecideRenderPassAllocationsForFrame(
35 const RenderPassList& render_passes_in_draw_order) override; 35 const RenderPassList& render_passes_in_draw_order) override;
36 bool HasAllocatedResourcesForTesting(RenderPassId id) const override; 36 bool HasAllocatedResourcesForTesting(RenderPassId id) const override;
37 void DrawFrame(RenderPassList* render_passes_in_draw_order, 37 void DrawFrame(RenderPassList* render_passes_in_draw_order,
38 float device_scale_factor, 38 float device_scale_factor,
39 const gfx::ColorSpace& device_color_space,
39 const gfx::Rect& device_viewport_rect, 40 const gfx::Rect& device_viewport_rect,
40 const gfx::Rect& device_clip_rect, 41 const gfx::Rect& device_clip_rect,
41 bool disable_picture_quad_image_filtering) override; 42 bool disable_picture_quad_image_filtering) override;
42 virtual void SwapBuffersComplete() {} 43 virtual void SwapBuffersComplete() {}
43 virtual void DidReceiveTextureInUseResponses( 44 virtual void DidReceiveTextureInUseResponses(
44 const gpu::TextureInUseResponses& responses) {} 45 const gpu::TextureInUseResponses& responses) {}
45 46
46 // If a pass contains a single tile draw quad and can be drawn without 47 // If a pass contains a single tile draw quad and can be drawn without
47 // a render pass (e.g. applying a filter directly to the tile quad) 48 // a render pass (e.g. applying a filter directly to the tile quad)
48 // return that quad, otherwise return null. 49 // return that quad, otherwise return null.
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 180
180 private: 181 private:
181 gfx::Size enlarge_pass_texture_amount_; 182 gfx::Size enlarge_pass_texture_amount_;
182 183
183 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); 184 DISALLOW_COPY_AND_ASSIGN(DirectRenderer);
184 }; 185 };
185 186
186 } // namespace cc 187 } // namespace cc
187 188
188 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ 189 #endif // CC_OUTPUT_DIRECT_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/output/delegating_renderer.cc ('k') | cc/output/direct_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698