| 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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "cc/base/cc_export.h" | 9 #include "cc/base/cc_export.h" |
| 10 #include "cc/output/compositor_frame.h" | 10 #include "cc/output/compositor_frame.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 const LayerTreeSettings* settings, | 22 const LayerTreeSettings* settings, |
| 23 OutputSurface* output_surface, | 23 OutputSurface* output_surface, |
| 24 ResourceProvider* resource_provider); | 24 ResourceProvider* resource_provider); |
| 25 virtual ~DelegatingRenderer(); | 25 virtual ~DelegatingRenderer(); |
| 26 | 26 |
| 27 virtual const RendererCapabilitiesImpl& Capabilities() const OVERRIDE; | 27 virtual const RendererCapabilitiesImpl& Capabilities() const OVERRIDE; |
| 28 | 28 |
| 29 virtual bool CanReadPixels() const OVERRIDE; | 29 virtual bool CanReadPixels() const OVERRIDE; |
| 30 | 30 |
| 31 virtual void DrawFrame(RenderPassList* render_passes_in_draw_order, | 31 virtual void DrawFrame(RenderPassList* render_passes_in_draw_order, |
| 32 ContextProvider* offscreen_context_provider, | |
| 33 float device_scale_factor, | 32 float device_scale_factor, |
| 34 const gfx::Rect& device_viewport_rect, | 33 const gfx::Rect& device_viewport_rect, |
| 35 const gfx::Rect& device_clip_rect, | 34 const gfx::Rect& device_clip_rect, |
| 36 bool disable_picture_quad_image_filtering) OVERRIDE; | 35 bool disable_picture_quad_image_filtering) OVERRIDE; |
| 37 | 36 |
| 38 virtual void Finish() OVERRIDE {} | 37 virtual void Finish() OVERRIDE {} |
| 39 | 38 |
| 40 virtual void SwapBuffers(const CompositorFrameMetadata& metadata) OVERRIDE; | 39 virtual void SwapBuffers(const CompositorFrameMetadata& metadata) OVERRIDE; |
| 41 virtual void ReceiveSwapBuffersAck(const CompositorFrameAck&) OVERRIDE; | 40 virtual void ReceiveSwapBuffersAck(const CompositorFrameAck&) OVERRIDE; |
| 42 | 41 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 62 RendererCapabilitiesImpl capabilities_; | 61 RendererCapabilitiesImpl capabilities_; |
| 63 scoped_ptr<DelegatedFrameData> delegated_frame_data_; | 62 scoped_ptr<DelegatedFrameData> delegated_frame_data_; |
| 64 bool visible_; | 63 bool visible_; |
| 65 | 64 |
| 66 DISALLOW_COPY_AND_ASSIGN(DelegatingRenderer); | 65 DISALLOW_COPY_AND_ASSIGN(DelegatingRenderer); |
| 67 }; | 66 }; |
| 68 | 67 |
| 69 } // namespace cc | 68 } // namespace cc |
| 70 | 69 |
| 71 #endif // CC_OUTPUT_DELEGATING_RENDERER_H_ | 70 #endif // CC_OUTPUT_DELEGATING_RENDERER_H_ |
| OLD | NEW |