| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 void OnNeedsBeginFramesChange(bool needs_begin_frames) override; | 65 void OnNeedsBeginFramesChange(bool needs_begin_frames) override; |
| 66 | 66 |
| 67 // SynchronousCompositorOutputSurfaceClient overrides. | 67 // SynchronousCompositorOutputSurfaceClient overrides. |
| 68 void Invalidate() override; | 68 void Invalidate() override; |
| 69 | 69 |
| 70 // Called by RenderWidgetHostViewAndroid. | 70 // Called by RenderWidgetHostViewAndroid. |
| 71 void BeginFrame(const cc::BeginFrameArgs& args); | 71 void BeginFrame(const cc::BeginFrameArgs& args); |
| 72 | 72 |
| 73 // SynchronousCompositor | 73 // SynchronousCompositor |
| 74 scoped_ptr<cc::CompositorFrame> DemandDrawHw( | 74 scoped_ptr<cc::CompositorFrame> DemandDrawHw( |
| 75 gfx::Size surface_size, | 75 const gfx::Size& surface_size, |
| 76 const gfx::Transform& transform, | 76 const gfx::Transform& transform, |
| 77 gfx::Rect viewport, | 77 const gfx::Rect& viewport, |
| 78 gfx::Rect clip, | 78 const gfx::Rect& clip, |
| 79 gfx::Rect viewport_rect_for_tile_priority, | 79 const gfx::Rect& viewport_rect_for_tile_priority, |
| 80 const gfx::Transform& transform_for_tile_priority) override; | 80 const gfx::Transform& transform_for_tile_priority) override; |
| 81 bool DemandDrawSw(SkCanvas* canvas) override; | 81 bool DemandDrawSw(SkCanvas* canvas) override; |
| 82 void ReturnResources(const cc::CompositorFrameAck& frame_ack) override; | 82 void ReturnResources(const cc::CompositorFrameAck& frame_ack) override; |
| 83 void SetMemoryPolicy(size_t bytes_limit) override; | 83 void SetMemoryPolicy(size_t bytes_limit) override; |
| 84 void DidChangeRootLayerScrollOffset( | 84 void DidChangeRootLayerScrollOffset( |
| 85 const gfx::ScrollOffset& root_offset) override; | 85 const gfx::ScrollOffset& root_offset) override; |
| 86 void SetIsActive(bool is_active) override; | 86 void SetIsActive(bool is_active) override; |
| 87 void OnComputeScroll(base::TimeTicks animation_time) override; | 87 void OnComputeScroll(base::TimeTicks animation_time) override; |
| 88 | 88 |
| 89 // SynchronousInputHandler | 89 // SynchronousInputHandler |
| (...skipping 30 matching lines...) Expand all Loading... |
| 120 bool need_animate_input_; | 120 bool need_animate_input_; |
| 121 | 121 |
| 122 base::WeakPtrFactory<SynchronousCompositorImpl> weak_ptr_factory_; | 122 base::WeakPtrFactory<SynchronousCompositorImpl> weak_ptr_factory_; |
| 123 | 123 |
| 124 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl); | 124 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl); |
| 125 }; | 125 }; |
| 126 | 126 |
| 127 } // namespace content | 127 } // namespace content |
| 128 | 128 |
| 129 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ | 129 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ |
| OLD | NEW |