| 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_DELEGATING_RENDERER_H_ | 5 #ifndef CC_OUTPUT_DELEGATING_RENDERER_H_ |
| 6 #define CC_OUTPUT_DELEGATING_RENDERER_H_ | 6 #define CC_OUTPUT_DELEGATING_RENDERER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 ~DelegatingRenderer() override; | 27 ~DelegatingRenderer() override; |
| 28 | 28 |
| 29 const RendererCapabilitiesImpl& Capabilities() const override; | 29 const RendererCapabilitiesImpl& Capabilities() const override; |
| 30 | 30 |
| 31 void DrawFrame(RenderPassList* render_passes_in_draw_order, | 31 void DrawFrame(RenderPassList* render_passes_in_draw_order, |
| 32 float device_scale_factor, | 32 float device_scale_factor, |
| 33 const gfx::ColorSpace& device_color_space, | 33 const gfx::ColorSpace& device_color_space, |
| 34 const gfx::Rect& device_viewport_rect, | 34 const gfx::Rect& device_viewport_rect, |
| 35 const gfx::Rect& device_clip_rect) override; | 35 const gfx::Rect& device_clip_rect) override; |
| 36 | 36 |
| 37 void Finish() override {} | |
| 38 | |
| 39 void SwapBuffers(CompositorFrameMetadata metadata) override; | 37 void SwapBuffers(CompositorFrameMetadata metadata) override; |
| 40 void ReclaimResources(const ReturnedResourceArray&) override; | 38 void ReclaimResources(const ReturnedResourceArray&) override; |
| 41 | 39 |
| 42 private: | 40 private: |
| 43 DelegatingRenderer(RendererClient* client, | 41 DelegatingRenderer(RendererClient* client, |
| 44 const RendererSettings* settings, | 42 const RendererSettings* settings, |
| 45 OutputSurface* output_surface, | 43 OutputSurface* output_surface, |
| 46 ResourceProvider* resource_provider); | 44 ResourceProvider* resource_provider); |
| 47 | 45 |
| 48 void DidChangeVisibility() override; | 46 void DidChangeVisibility() override; |
| 49 | 47 |
| 50 OutputSurface* output_surface_; | 48 OutputSurface* output_surface_; |
| 51 ResourceProvider* resource_provider_; | 49 ResourceProvider* resource_provider_; |
| 52 RendererCapabilitiesImpl capabilities_; | 50 RendererCapabilitiesImpl capabilities_; |
| 53 std::unique_ptr<DelegatedFrameData> delegated_frame_data_; | 51 std::unique_ptr<DelegatedFrameData> delegated_frame_data_; |
| 54 | 52 |
| 55 DISALLOW_COPY_AND_ASSIGN(DelegatingRenderer); | 53 DISALLOW_COPY_AND_ASSIGN(DelegatingRenderer); |
| 56 }; | 54 }; |
| 57 | 55 |
| 58 } // namespace cc | 56 } // namespace cc |
| 59 | 57 |
| 60 #endif // CC_OUTPUT_DELEGATING_RENDERER_H_ | 58 #endif // CC_OUTPUT_DELEGATING_RENDERER_H_ |
| OLD | NEW |