OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ | 5 #ifndef CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ |
6 #define CONTENT_RENDERER_ANDOIRD_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ | 6 #define CONTENT_RENDERER_ANDOIRD_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 class SynchronousCompositorOutputSurface | 27 class SynchronousCompositorOutputSurface |
28 : NON_EXPORTED_BASE(public cc::OutputSurface), | 28 : NON_EXPORTED_BASE(public cc::OutputSurface), |
29 NON_EXPORTED_BASE(public SynchronousCompositor) { | 29 NON_EXPORTED_BASE(public SynchronousCompositor) { |
30 public: | 30 public: |
31 explicit SynchronousCompositorOutputSurface(int32 routing_id); | 31 explicit SynchronousCompositorOutputSurface(int32 routing_id); |
32 virtual ~SynchronousCompositorOutputSurface(); | 32 virtual ~SynchronousCompositorOutputSurface(); |
33 | 33 |
34 // OutputSurface. | 34 // OutputSurface. |
35 virtual bool ForcedDrawToSoftwareDevice() const OVERRIDE; | 35 virtual bool ForcedDrawToSoftwareDevice() const OVERRIDE; |
36 virtual bool BindToClient(cc::OutputSurfaceClient* surface_client) OVERRIDE; | 36 virtual bool BindToClient(cc::OutputSurfaceClient* surface_client) OVERRIDE; |
37 virtual void Reshape(gfx::Size size) OVERRIDE; | 37 virtual void Reshape(gfx::Size size, float scale_factor) OVERRIDE; |
38 virtual void SendFrameToParentCompositor(cc::CompositorFrame* frame) OVERRIDE; | 38 virtual void SendFrameToParentCompositor(cc::CompositorFrame* frame) OVERRIDE; |
39 virtual void EnableVSyncNotification(bool enable_vsync) OVERRIDE; | 39 virtual void EnableVSyncNotification(bool enable_vsync) OVERRIDE; |
40 virtual void SwapBuffers(const cc::LatencyInfo& info) OVERRIDE; | 40 virtual void SwapBuffers(const cc::LatencyInfo& info) OVERRIDE; |
41 | 41 |
42 // SynchronousCompositor. | 42 // SynchronousCompositor. |
43 virtual void SetClient(SynchronousCompositorClient* compositor_client) | 43 virtual void SetClient(SynchronousCompositorClient* compositor_client) |
44 OVERRIDE; | 44 OVERRIDE; |
45 virtual bool IsHwReady() OVERRIDE; | 45 virtual bool IsHwReady() OVERRIDE; |
46 virtual bool DemandDrawSw(SkCanvas* canvas) OVERRIDE; | 46 virtual bool DemandDrawSw(SkCanvas* canvas) OVERRIDE; |
47 virtual bool DemandDrawHw( | 47 virtual bool DemandDrawHw( |
(...skipping 17 matching lines...) Expand all Loading... |
65 | 65 |
66 // Only valid (non-NULL) during a DemandDrawSw() call. | 66 // Only valid (non-NULL) during a DemandDrawSw() call. |
67 SkCanvas* current_sw_canvas_; | 67 SkCanvas* current_sw_canvas_; |
68 | 68 |
69 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); | 69 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); |
70 }; | 70 }; |
71 | 71 |
72 } // namespace content | 72 } // namespace content |
73 | 73 |
74 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ | 74 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ |
OLD | NEW |