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_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ |
6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ | 6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 // SynchronousCompositor | 51 // SynchronousCompositor |
52 virtual void SetClient(SynchronousCompositorClient* compositor_client) | 52 virtual void SetClient(SynchronousCompositorClient* compositor_client) |
53 OVERRIDE; | 53 OVERRIDE; |
54 virtual bool InitializeHwDraw() OVERRIDE; | 54 virtual bool InitializeHwDraw() OVERRIDE; |
55 virtual void ReleaseHwDraw() OVERRIDE; | 55 virtual void ReleaseHwDraw() OVERRIDE; |
56 virtual gpu::GLInProcessContext* GetShareContext() OVERRIDE; | 56 virtual gpu::GLInProcessContext* GetShareContext() OVERRIDE; |
57 virtual scoped_ptr<cc::CompositorFrame> DemandDrawHw( | 57 virtual scoped_ptr<cc::CompositorFrame> DemandDrawHw( |
58 gfx::Size surface_size, | 58 gfx::Size surface_size, |
59 const gfx::Transform& transform, | 59 const gfx::Transform& transform, |
60 gfx::Rect viewport, | 60 gfx::Rect viewport, |
61 gfx::Rect clip) OVERRIDE; | 61 gfx::Rect clip, |
| 62 gfx::Rect viewport_rect_for_tile_priority, |
| 63 const gfx::Transform& transform_for_tile_priority) OVERRIDE; |
62 virtual bool DemandDrawSw(SkCanvas* canvas) OVERRIDE; | 64 virtual bool DemandDrawSw(SkCanvas* canvas) OVERRIDE; |
63 virtual void ReturnResources( | 65 virtual void ReturnResources( |
64 const cc::CompositorFrameAck& frame_ack) OVERRIDE; | 66 const cc::CompositorFrameAck& frame_ack) OVERRIDE; |
65 virtual void SetMemoryPolicy( | 67 virtual void SetMemoryPolicy( |
66 const SynchronousCompositorMemoryPolicy& policy) OVERRIDE; | 68 const SynchronousCompositorMemoryPolicy& policy) OVERRIDE; |
67 virtual void DidChangeRootLayerScrollOffset() OVERRIDE; | 69 virtual void DidChangeRootLayerScrollOffset() OVERRIDE; |
68 | 70 |
69 // SynchronousCompositorOutputSurfaceDelegate | 71 // SynchronousCompositorOutputSurfaceDelegate |
70 virtual void DidBindOutputSurface( | 72 virtual void DidBindOutputSurface( |
71 SynchronousCompositorOutputSurface* output_surface) OVERRIDE; | 73 SynchronousCompositorOutputSurface* output_surface) OVERRIDE; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 cc::InputHandler* input_handler_; | 105 cc::InputHandler* input_handler_; |
104 | 106 |
105 base::WeakPtrFactory<SynchronousCompositorImpl> weak_ptr_factory_; | 107 base::WeakPtrFactory<SynchronousCompositorImpl> weak_ptr_factory_; |
106 | 108 |
107 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl); | 109 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl); |
108 }; | 110 }; |
109 | 111 |
110 } // namespace content | 112 } // namespace content |
111 | 113 |
112 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ | 114 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ |
OLD | NEW |