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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 const gfx::Rect& clip, | 68 const gfx::Rect& clip, |
69 const gfx::Rect& viewport_rect_for_tile_priority, | 69 const gfx::Rect& viewport_rect_for_tile_priority, |
70 const gfx::Transform& transform_for_tile_priority) override; | 70 const gfx::Transform& transform_for_tile_priority) override; |
71 bool DemandDrawSw(SkCanvas* canvas) override; | 71 bool DemandDrawSw(SkCanvas* canvas) override; |
72 void ReturnResources(uint32_t output_surface_id, | 72 void ReturnResources(uint32_t output_surface_id, |
73 const cc::CompositorFrameAck& frame_ack) override; | 73 const cc::CompositorFrameAck& frame_ack) override; |
74 void SetMemoryPolicy(size_t bytes_limit) override; | 74 void SetMemoryPolicy(size_t bytes_limit) override; |
75 void DidChangeRootLayerScrollOffset( | 75 void DidChangeRootLayerScrollOffset( |
76 const gfx::ScrollOffset& root_offset) override; | 76 const gfx::ScrollOffset& root_offset) override; |
77 void SetIsActive(bool is_active) override; | 77 void SetIsActive(bool is_active) override; |
| 78 void SynchronizeWithRenderer() override; |
78 void OnComputeScroll(base::TimeTicks animation_time) override; | 79 void OnComputeScroll(base::TimeTicks animation_time) override; |
79 | 80 |
80 // SynchronousCompositorBase overrides. | 81 // SynchronousCompositorBase overrides. |
81 void BeginFrame(const cc::BeginFrameArgs& args) override; | 82 void BeginFrame(const cc::BeginFrameArgs& args) override; |
82 InputEventAckState HandleInputEvent( | 83 InputEventAckState HandleInputEvent( |
83 const blink::WebInputEvent& input_event) override; | 84 const blink::WebInputEvent& input_event) override; |
84 void DidOverscroll(const DidOverscrollParams& params) override; | 85 void DidOverscroll(const DidOverscrollParams& params) override; |
85 bool OnMessageReceived(const IPC::Message& message) override; | 86 bool OnMessageReceived(const IPC::Message& message) override; |
86 void DidBecomeCurrent() override; | 87 void DidBecomeCurrent() override; |
87 | 88 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 SynchronousCompositor::Frame frame_holder_; | 122 SynchronousCompositor::Frame frame_holder_; |
122 | 123 |
123 base::WeakPtrFactory<SynchronousCompositorImpl> weak_ptr_factory_; | 124 base::WeakPtrFactory<SynchronousCompositorImpl> weak_ptr_factory_; |
124 | 125 |
125 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl); | 126 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl); |
126 }; | 127 }; |
127 | 128 |
128 } // namespace content | 129 } // namespace content |
129 | 130 |
130 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ | 131 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ |
OLD | NEW |