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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 virtual scoped_ptr<cc::CompositorFrame> DemandDrawHw( | 56 virtual scoped_ptr<cc::CompositorFrame> DemandDrawHw( |
57 gfx::Size surface_size, | 57 gfx::Size surface_size, |
58 const gfx::Transform& transform, | 58 const gfx::Transform& transform, |
59 gfx::Rect viewport, | 59 gfx::Rect viewport, |
60 gfx::Rect clip, | 60 gfx::Rect clip, |
61 gfx::Rect viewport_rect_for_tile_priority, | 61 gfx::Rect viewport_rect_for_tile_priority, |
62 const gfx::Transform& transform_for_tile_priority) override; | 62 const gfx::Transform& transform_for_tile_priority) override; |
63 virtual bool DemandDrawSw(SkCanvas* canvas) override; | 63 virtual bool DemandDrawSw(SkCanvas* canvas) override; |
64 virtual void ReturnResources( | 64 virtual void ReturnResources( |
65 const cc::CompositorFrameAck& frame_ack) override; | 65 const cc::CompositorFrameAck& frame_ack) override; |
66 virtual void SetMemoryPolicy( | 66 virtual void SetMemoryPolicy(size_t bytes_limit) override; |
67 const SynchronousCompositorMemoryPolicy& policy) override; | |
68 virtual void DidChangeRootLayerScrollOffset() override; | 67 virtual void DidChangeRootLayerScrollOffset() override; |
69 | 68 |
70 // SynchronousCompositorOutputSurfaceDelegate | 69 // SynchronousCompositorOutputSurfaceDelegate |
71 virtual void DidBindOutputSurface( | 70 virtual void DidBindOutputSurface( |
72 SynchronousCompositorOutputSurface* output_surface) override; | 71 SynchronousCompositorOutputSurface* output_surface) override; |
73 virtual void DidDestroySynchronousOutputSurface( | 72 virtual void DidDestroySynchronousOutputSurface( |
74 SynchronousCompositorOutputSurface* output_surface) override; | 73 SynchronousCompositorOutputSurface* output_surface) override; |
75 virtual void SetContinuousInvalidate(bool enable) override; | 74 virtual void SetContinuousInvalidate(bool enable) override; |
76 virtual void DidActivatePendingTree() override; | 75 virtual void DidActivatePendingTree() override; |
77 | 76 |
(...skipping 27 matching lines...) Expand all Loading... |
105 cc::InputHandler* input_handler_; | 104 cc::InputHandler* input_handler_; |
106 | 105 |
107 base::WeakPtrFactory<SynchronousCompositorImpl> weak_ptr_factory_; | 106 base::WeakPtrFactory<SynchronousCompositorImpl> weak_ptr_factory_; |
108 | 107 |
109 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl); | 108 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl); |
110 }; | 109 }; |
111 | 110 |
112 } // namespace content | 111 } // namespace content |
113 | 112 |
114 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ | 113 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ |
OLD | NEW |