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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 RenderWidgetHostViewAndroid* rwhva, | 52 RenderWidgetHostViewAndroid* rwhva, |
53 WebContents* web_contents); | 53 WebContents* web_contents); |
54 | 54 |
55 ~SynchronousCompositorHost() override; | 55 ~SynchronousCompositorHost() override; |
56 | 56 |
57 // SynchronousCompositor overrides. | 57 // SynchronousCompositor overrides. |
58 SynchronousCompositor::Frame DemandDrawHw( | 58 SynchronousCompositor::Frame DemandDrawHw( |
59 const gfx::Size& viewport_size, | 59 const gfx::Size& viewport_size, |
60 const gfx::Rect& viewport_rect_for_tile_priority, | 60 const gfx::Rect& viewport_rect_for_tile_priority, |
61 const gfx::Transform& transform_for_tile_priority) override; | 61 const gfx::Transform& transform_for_tile_priority) override; |
62 void DemandDrawHwAsync( | 62 scoped_refptr<SynchronousCompositor::FrameFuture> DemandDrawHwAsync( |
63 const gfx::Size& viewport_size, | 63 const gfx::Size& viewport_size, |
64 const gfx::Rect& viewport_rect_for_tile_priority, | 64 const gfx::Rect& viewport_rect_for_tile_priority, |
65 const gfx::Transform& transform_for_tile_priority) override; | 65 const gfx::Transform& transform_for_tile_priority) override; |
66 bool DemandDrawSw(SkCanvas* canvas) override; | 66 bool DemandDrawSw(SkCanvas* canvas) override; |
67 void ReturnResources(uint32_t compositor_frame_sink_id, | 67 void ReturnResources(uint32_t compositor_frame_sink_id, |
68 const cc::ReturnedResourceArray& resources) override; | 68 const cc::ReturnedResourceArray& resources) override; |
69 void SetMemoryPolicy(size_t bytes_limit) override; | 69 void SetMemoryPolicy(size_t bytes_limit) override; |
70 void DidChangeRootLayerScrollOffset( | 70 void DidChangeRootLayerScrollOffset( |
71 const gfx::ScrollOffset& root_offset) override; | 71 const gfx::ScrollOffset& root_offset) override; |
72 void SynchronouslyZoomBy(float zoom_delta, const gfx::Point& anchor) override; | 72 void SynchronouslyZoomBy(float zoom_delta, const gfx::Point& anchor) override; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 bool need_animate_scroll_; | 121 bool need_animate_scroll_; |
122 uint32_t need_invalidate_count_; | 122 uint32_t need_invalidate_count_; |
123 uint32_t did_activate_pending_tree_count_; | 123 uint32_t did_activate_pending_tree_count_; |
124 | 124 |
125 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorHost); | 125 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorHost); |
126 }; | 126 }; |
127 | 127 |
128 } // namespace content | 128 } // namespace content |
129 | 129 |
130 #endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_ | 130 #endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_ |
OLD | NEW |