OLD | NEW |
---|---|
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_RENDERER_H_ | 5 #ifndef CC_OUTPUT_RENDERER_H_ |
6 #define CC_OUTPUT_RENDERER_H_ | 6 #define CC_OUTPUT_RENDERER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "cc/base/cc_export.h" | 9 #include "cc/base/cc_export.h" |
10 #include "cc/quads/render_pass.h" | 10 #include "cc/quads/render_pass.h" |
(...skipping 22 matching lines...) Expand all Loading... | |
33 bool using_map_image; | 33 bool using_map_image; |
34 bool using_discard_framebuffer; | 34 bool using_discard_framebuffer; |
35 bool allow_rasterize_on_demand; | 35 bool allow_rasterize_on_demand; |
36 | 36 |
37 RendererCapabilities MainThreadCapabilities() const; | 37 RendererCapabilities MainThreadCapabilities() const; |
38 }; | 38 }; |
39 | 39 |
40 class CC_EXPORT RendererClient { | 40 class CC_EXPORT RendererClient { |
41 public: | 41 public: |
42 virtual void SetFullRootLayerDamage() = 0; | 42 virtual void SetFullRootLayerDamage() = 0; |
43 virtual bool UseTaskGraphRunnerForOnDemandRaster() = 0; | |
reveman
2014/06/18 01:18:28
Would it be better to just have this take a resour
boliu
2014/06/18 02:02:36
Umm, not familiar with this area so not sure? Two
reveman
2014/06/18 04:17:24
SoftwareRenderer can use software resources, right
boliu
2014/06/18 16:41:11
Not webview's SoftwareRenderer I think? That one i
reveman
2014/06/19 04:23:27
Ok, in that case "RunOnDemandRasterTask(Task* on_d
| |
43 }; | 44 }; |
44 | 45 |
45 class CC_EXPORT Renderer { | 46 class CC_EXPORT Renderer { |
46 public: | 47 public: |
47 virtual ~Renderer() {} | 48 virtual ~Renderer() {} |
48 | 49 |
49 virtual const RendererCapabilitiesImpl& Capabilities() const = 0; | 50 virtual const RendererCapabilitiesImpl& Capabilities() const = 0; |
50 | 51 |
51 virtual void DecideRenderPassAllocationsForFrame( | 52 virtual void DecideRenderPassAllocationsForFrame( |
52 const RenderPassList& render_passes_in_draw_order) {} | 53 const RenderPassList& render_passes_in_draw_order) {} |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
91 const LayerTreeSettings* settings_; | 92 const LayerTreeSettings* settings_; |
92 bool visible_; | 93 bool visible_; |
93 | 94 |
94 private: | 95 private: |
95 DISALLOW_COPY_AND_ASSIGN(Renderer); | 96 DISALLOW_COPY_AND_ASSIGN(Renderer); |
96 }; | 97 }; |
97 | 98 |
98 } // namespace cc | 99 } // namespace cc |
99 | 100 |
100 #endif // CC_OUTPUT_RENDERER_H_ | 101 #endif // CC_OUTPUT_RENDERER_H_ |
OLD | NEW |