Chromium Code Reviews| 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> |
| 11 #include <set> | 11 #include <set> |
| 12 | 12 |
| 13 #include "android_webview/browser/child_frame.h" | |
|
boliu
2016/09/16 16:26:12
shouldn't need this, forward declaration should be
ojars
2016/09/19 22:02:36
Done.
| |
| 13 #include "android_webview/browser/compositor_frame_producer.h" | 14 #include "android_webview/browser/compositor_frame_producer.h" |
| 14 #include "android_webview/browser/compositor_id.h" | 15 #include "android_webview/browser/compositor_id.h" |
| 15 #include "android_webview/browser/parent_compositor_draw_constraints.h" | 16 #include "android_webview/browser/parent_compositor_draw_constraints.h" |
| 16 #include "base/callback.h" | 17 #include "base/callback.h" |
| 17 #include "base/cancelable_callback.h" | 18 #include "base/cancelable_callback.h" |
| 18 #include "base/macros.h" | 19 #include "base/macros.h" |
| 20 #include "base/memory/ref_counted.h" | |
| 19 #include "base/trace_event/trace_event.h" | 21 #include "base/trace_event/trace_event.h" |
| 20 #include "content/public/browser/android/synchronous_compositor.h" | 22 #include "content/public/browser/android/synchronous_compositor.h" |
| 21 #include "content/public/browser/android/synchronous_compositor_client.h" | 23 #include "content/public/browser/android/synchronous_compositor_client.h" |
| 22 #include "third_party/skia/include/core/SkRefCnt.h" | 24 #include "third_party/skia/include/core/SkRefCnt.h" |
| 23 #include "ui/gfx/geometry/rect.h" | 25 #include "ui/gfx/geometry/rect.h" |
| 24 #include "ui/gfx/geometry/size_f.h" | 26 #include "ui/gfx/geometry/size_f.h" |
| 25 #include "ui/gfx/geometry/vector2d_f.h" | 27 #include "ui/gfx/geometry/vector2d_f.h" |
| 26 | 28 |
| 27 class SkCanvas; | 29 class SkCanvas; |
| 28 class SkPicture; | 30 class SkPicture; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 123 const gfx::Vector2dF& max_scroll_offset_dip, | 125 const gfx::Vector2dF& max_scroll_offset_dip, |
| 124 const gfx::SizeF& scrollable_size_dip, | 126 const gfx::SizeF& scrollable_size_dip, |
| 125 float page_scale_factor, | 127 float page_scale_factor, |
| 126 float min_page_scale_factor, | 128 float min_page_scale_factor, |
| 127 float max_page_scale_factor) override; | 129 float max_page_scale_factor) override; |
| 128 void DidOverscroll(content::SynchronousCompositor* compositor, | 130 void DidOverscroll(content::SynchronousCompositor* compositor, |
| 129 const gfx::Vector2dF& accumulated_overscroll, | 131 const gfx::Vector2dF& accumulated_overscroll, |
| 130 const gfx::Vector2dF& latest_overscroll_delta, | 132 const gfx::Vector2dF& latest_overscroll_delta, |
| 131 const gfx::Vector2dF& current_fling_velocity) override; | 133 const gfx::Vector2dF& current_fling_velocity) override; |
| 132 ui::TouchHandleDrawable* CreateDrawable() override; | 134 ui::TouchHandleDrawable* CreateDrawable() override; |
| 135 std::unique_ptr<ChildFrame> CreateChildFrame( | |
| 136 scoped_refptr<content::SynchronousCompositor::FrameFuture> frame_future); | |
| 133 void OnDrawHardwareProcessFrame( | 137 void OnDrawHardwareProcessFrame( |
| 134 content::SynchronousCompositor::Frame frame) override; | 138 scoped_refptr<content::SynchronousCompositor::FrameFuture> frame_future) |
| 139 override; | |
| 135 | 140 |
| 136 // CompositorFrameProducer overrides | 141 // CompositorFrameProducer overrides |
| 137 void OnParentDrawConstraintsUpdated( | 142 void OnParentDrawConstraintsUpdated( |
| 138 CompositorFrameConsumer* compositor_frame_consumer) override; | 143 CompositorFrameConsumer* compositor_frame_consumer) override; |
| 139 void RemoveCompositorFrameConsumer( | 144 void RemoveCompositorFrameConsumer( |
| 140 CompositorFrameConsumer* compositor_frame_consumer) override; | 145 CompositorFrameConsumer* compositor_frame_consumer) override; |
| 141 | 146 |
| 142 void SetActiveCompositorID(const CompositorID& compositor_id); | 147 void SetActiveCompositorID(const CompositorID& compositor_id); |
| 143 | 148 |
| 144 // Visible for testing. | 149 // Visible for testing. |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 225 gfx::Vector2dF overscroll_rounding_error_; | 230 gfx::Vector2dF overscroll_rounding_error_; |
| 226 | 231 |
| 227 ParentCompositorDrawConstraints external_draw_constraints_; | 232 ParentCompositorDrawConstraints external_draw_constraints_; |
| 228 | 233 |
| 229 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); | 234 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); |
| 230 }; | 235 }; |
| 231 | 236 |
| 232 } // namespace android_webview | 237 } // namespace android_webview |
| 233 | 238 |
| 234 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ | 239 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ |
| OLD | NEW |