OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_SYNCHRONOUS_COMPOSITOR_HOST_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_ |
6 #define CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_ | 6 #define CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 // SynchronousCompositor overrides. | 51 // SynchronousCompositor overrides. |
52 SynchronousCompositor::Frame DemandDrawHw( | 52 SynchronousCompositor::Frame DemandDrawHw( |
53 const gfx::Size& surface_size, | 53 const gfx::Size& surface_size, |
54 const gfx::Transform& transform, | 54 const gfx::Transform& transform, |
55 const gfx::Rect& viewport, | 55 const gfx::Rect& viewport, |
56 const gfx::Rect& clip, | 56 const gfx::Rect& clip, |
57 const gfx::Rect& viewport_rect_for_tile_priority, | 57 const gfx::Rect& viewport_rect_for_tile_priority, |
58 const gfx::Transform& transform_for_tile_priority) override; | 58 const gfx::Transform& transform_for_tile_priority) override; |
59 bool DemandDrawSw(SkCanvas* canvas) override; | 59 bool DemandDrawSw(SkCanvas* canvas) override; |
60 void ReturnResources(uint32_t output_surface_id, | 60 void ReturnResources(uint32_t output_surface_id, |
61 const cc::CompositorFrameAck& frame_ack) override; | 61 const cc::ReturnedResourceArray& resources) override; |
62 void SetMemoryPolicy(size_t bytes_limit) override; | 62 void SetMemoryPolicy(size_t bytes_limit) override; |
63 void DidChangeRootLayerScrollOffset( | 63 void DidChangeRootLayerScrollOffset( |
64 const gfx::ScrollOffset& root_offset) override; | 64 const gfx::ScrollOffset& root_offset) override; |
65 void SynchronouslyZoomBy(float zoom_delta, const gfx::Point& anchor) override; | 65 void SynchronouslyZoomBy(float zoom_delta, const gfx::Point& anchor) override; |
66 void OnComputeScroll(base::TimeTicks animation_time) override; | 66 void OnComputeScroll(base::TimeTicks animation_time) override; |
67 | 67 |
68 void DidOverscroll(const DidOverscrollParams& over_scroll_params); | 68 void DidOverscroll(const DidOverscrollParams& over_scroll_params); |
69 void DidSendBeginFrame(); | 69 void DidSendBeginFrame(); |
70 bool OnMessageReceived(const IPC::Message& message); | 70 bool OnMessageReceived(const IPC::Message& message); |
71 | 71 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 bool need_animate_scroll_; | 104 bool need_animate_scroll_; |
105 uint32_t need_invalidate_count_; | 105 uint32_t need_invalidate_count_; |
106 uint32_t did_activate_pending_tree_count_; | 106 uint32_t did_activate_pending_tree_count_; |
107 | 107 |
108 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorHost); | 108 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorHost); |
109 }; | 109 }; |
110 | 110 |
111 } // namespace content | 111 } // namespace content |
112 | 112 |
113 #endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_ | 113 #endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_ |
OLD | NEW |