OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ |
6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 const gfx::Vector2dF& current_fling_velocity) override; | 121 const gfx::Vector2dF& current_fling_velocity) override; |
122 | 122 |
123 void OnParentDrawConstraintsUpdated(); | 123 void OnParentDrawConstraintsUpdated(); |
124 void DetachFunctorFromView(); | 124 void DetachFunctorFromView(); |
125 | 125 |
126 private: | 126 private: |
127 void SetTotalRootLayerScrollOffset(const gfx::Vector2dF& new_value_dip); | 127 void SetTotalRootLayerScrollOffset(const gfx::Vector2dF& new_value_dip); |
128 bool CanOnDraw(); | 128 bool CanOnDraw(); |
129 void UpdateCompositorIsActive(); | 129 void UpdateCompositorIsActive(); |
130 bool CompositeSW(SkCanvas* canvas); | 130 bool CompositeSW(SkCanvas* canvas); |
131 scoped_ptr<base::trace_event::ConvertableToTraceFormat> RootLayerStateAsValue( | 131 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> |
132 const gfx::Vector2dF& total_scroll_offset_dip, | 132 RootLayerStateAsValue(const gfx::Vector2dF& total_scroll_offset_dip, |
133 const gfx::SizeF& scrollable_size_dip); | 133 const gfx::SizeF& scrollable_size_dip); |
134 | 134 |
135 void ReturnUnusedResource(scoped_ptr<ChildFrame> frame); | 135 void ReturnUnusedResource(std::unique_ptr<ChildFrame> frame); |
136 void ReturnResourceFromParent(); | 136 void ReturnResourceFromParent(); |
137 | 137 |
138 gfx::Vector2d max_scroll_offset() const; | 138 gfx::Vector2d max_scroll_offset() const; |
139 | 139 |
140 void UpdateMemoryPolicy(); | 140 void UpdateMemoryPolicy(); |
141 | 141 |
142 uint32_t GetCompositorID(content::SynchronousCompositor* compositor); | 142 uint32_t GetCompositorID(content::SynchronousCompositor* compositor); |
143 // For debug tracing or logging. Return the string representation of this | 143 // For debug tracing or logging. Return the string representation of this |
144 // view renderer's state. | 144 // view renderer's state. |
145 std::string ToString() const; | 145 std::string ToString() const; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 uint32_t next_compositor_id_; | 194 uint32_t next_compositor_id_; |
195 | 195 |
196 ParentCompositorDrawConstraints external_draw_constraints_; | 196 ParentCompositorDrawConstraints external_draw_constraints_; |
197 | 197 |
198 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); | 198 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); |
199 }; | 199 }; |
200 | 200 |
201 } // namespace android_webview | 201 } // namespace android_webview |
202 | 202 |
203 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ | 203 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ |
OLD | NEW |