OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE
_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE
_H_ |
6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE
_H_ | 6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_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/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 // to a fixed thread when BindToClient is called. | 51 // to a fixed thread when BindToClient is called. |
52 class SynchronousCompositorOutputSurface | 52 class SynchronousCompositorOutputSurface |
53 : NON_EXPORTED_BASE(public cc::OutputSurface) { | 53 : NON_EXPORTED_BASE(public cc::OutputSurface) { |
54 public: | 54 public: |
55 explicit SynchronousCompositorOutputSurface(int routing_id); | 55 explicit SynchronousCompositorOutputSurface(int routing_id); |
56 virtual ~SynchronousCompositorOutputSurface(); | 56 virtual ~SynchronousCompositorOutputSurface(); |
57 | 57 |
58 // OutputSurface. | 58 // OutputSurface. |
59 virtual bool ForcedDrawToSoftwareDevice() const OVERRIDE; | 59 virtual bool ForcedDrawToSoftwareDevice() const OVERRIDE; |
60 virtual bool BindToClient(cc::OutputSurfaceClient* surface_client) OVERRIDE; | 60 virtual bool BindToClient(cc::OutputSurfaceClient* surface_client) OVERRIDE; |
61 virtual void Reshape(const gfx::Size& size, float scale_factor) OVERRIDE; | 61 virtual void Reshape(gfx::Size size, float scale_factor) OVERRIDE; |
62 virtual void SetNeedsBeginImplFrame(bool enable) OVERRIDE; | 62 virtual void SetNeedsBeginImplFrame(bool enable) OVERRIDE; |
63 virtual void SwapBuffers(cc::CompositorFrame* frame) OVERRIDE; | 63 virtual void SwapBuffers(cc::CompositorFrame* frame) OVERRIDE; |
64 | 64 |
65 // Partial SynchronousCompositor API implementation. | 65 // Partial SynchronousCompositor API implementation. |
66 bool InitializeHwDraw( | 66 bool InitializeHwDraw( |
67 scoped_refptr<gfx::GLSurface> surface, | 67 scoped_refptr<gfx::GLSurface> surface, |
68 scoped_refptr<cc::ContextProvider> offscreen_context_provider); | 68 scoped_refptr<cc::ContextProvider> offscreen_context_provider); |
69 void ReleaseHwDraw(); | 69 void ReleaseHwDraw(); |
70 bool DemandDrawHw(gfx::Size surface_size, | 70 bool DemandDrawHw(gfx::Size surface_size, |
71 const gfx::Transform& transform, | 71 const gfx::Transform& transform, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 cc::ManagedMemoryPolicy memory_policy_; | 104 cc::ManagedMemoryPolicy memory_policy_; |
105 | 105 |
106 cc::OutputSurfaceClient* output_surface_client_; | 106 cc::OutputSurfaceClient* output_surface_client_; |
107 | 107 |
108 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); | 108 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); |
109 }; | 109 }; |
110 | 110 |
111 } // namespace content | 111 } // namespace content |
112 | 112 |
113 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURF
ACE_H_ | 113 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURF
ACE_H_ |
OLD | NEW |