| 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 <unordered_map> | 8 #include <unordered_map> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 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::ColorProfile& device_color_profile, |
| 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 Loading... |
| 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_ |
| OLD | NEW |