| 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_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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/containers/scoped_ptr_hash_map.h" | 10 #include "base/containers/scoped_ptr_hash_map.h" |
| 11 #include "cc/base/cc_export.h" | 11 #include "cc/base/cc_export.h" |
| 12 #include "cc/output/overlay_processor.h" | 12 #include "cc/output/overlay_processor.h" |
| 13 #include "cc/output/renderer.h" | 13 #include "cc/output/renderer.h" |
| 14 #include "cc/resources/resource_provider.h" | 14 #include "cc/resources/resource_provider.h" |
| 15 #include "cc/resources/scoped_resource.h" | 15 #include "cc/resources/scoped_resource.h" |
| 16 | 16 |
| 17 namespace cc { | 17 namespace cc { |
| 18 | 18 |
| 19 class ResourceProvider; | 19 class ResourceProvider; |
| 20 | 20 |
| 21 // This is the base class for code shared between the GL and software | 21 // This is the base class for code shared between the GL and software |
| 22 // renderer implementations. "Direct" refers to the fact that it does not | 22 // renderer implementations. "Direct" refers to the fact that it does not |
| 23 // delegate rendering to another compositor. | 23 // delegate rendering to another compositor. |
| 24 class CC_EXPORT DirectRenderer : public Renderer { | 24 class CC_EXPORT DirectRenderer : public Renderer { |
| 25 public: | 25 public: |
| 26 virtual ~DirectRenderer(); | 26 virtual ~DirectRenderer(); |
| 27 | 27 |
| 28 virtual void DecideRenderPassAllocationsForFrame( | 28 virtual void DecideRenderPassAllocationsForFrame( |
| 29 const RenderPassList& render_passes_in_draw_order) OVERRIDE; | 29 const RenderPassList& render_passes_in_draw_order) override; |
| 30 virtual bool HasAllocatedResourcesForTesting(RenderPassId id) const OVERRIDE; | 30 virtual bool HasAllocatedResourcesForTesting(RenderPassId id) const override; |
| 31 virtual void DrawFrame(RenderPassList* render_passes_in_draw_order, | 31 virtual void DrawFrame(RenderPassList* render_passes_in_draw_order, |
| 32 float device_scale_factor, | 32 float device_scale_factor, |
| 33 const gfx::Rect& device_viewport_rect, | 33 const gfx::Rect& device_viewport_rect, |
| 34 const gfx::Rect& device_clip_rect, | 34 const gfx::Rect& device_clip_rect, |
| 35 bool disable_picture_quad_image_filtering) OVERRIDE; | 35 bool disable_picture_quad_image_filtering) override; |
| 36 | 36 |
| 37 struct CC_EXPORT DrawingFrame { | 37 struct CC_EXPORT DrawingFrame { |
| 38 DrawingFrame(); | 38 DrawingFrame(); |
| 39 ~DrawingFrame(); | 39 ~DrawingFrame(); |
| 40 | 40 |
| 41 const RenderPassList* render_passes_in_draw_order; | 41 const RenderPassList* render_passes_in_draw_order; |
| 42 const RenderPass* root_render_pass; | 42 const RenderPass* root_render_pass; |
| 43 const RenderPass* current_render_pass; | 43 const RenderPass* current_render_pass; |
| 44 const ScopedResource* current_texture; | 44 const ScopedResource* current_texture; |
| 45 | 45 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 130 |
| 131 private: | 131 private: |
| 132 gfx::Vector2d enlarge_pass_texture_amount_; | 132 gfx::Vector2d enlarge_pass_texture_amount_; |
| 133 | 133 |
| 134 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); | 134 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 } // namespace cc | 137 } // namespace cc |
| 138 | 138 |
| 139 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ | 139 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ |
| OLD | NEW |