| 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_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_ | 6 #define CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/ref_counted.h" |
| 10 #include "base/time/time.h" | 11 #include "base/time/time.h" |
| 11 #include "ui/gfx/geometry/size_f.h" | 12 #include "ui/gfx/geometry/size_f.h" |
| 12 #include "ui/gfx/geometry/vector2d_f.h" | 13 #include "ui/gfx/geometry/vector2d_f.h" |
| 13 | 14 |
| 14 namespace ui { | 15 namespace ui { |
| 15 class TouchHandleDrawable; | 16 class TouchHandleDrawable; |
| 16 } | 17 } |
| 17 | 18 |
| 18 namespace content { | 19 namespace content { |
| 19 | 20 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 48 const gfx::Vector2dF& accumulated_overscroll, | 49 const gfx::Vector2dF& accumulated_overscroll, |
| 49 const gfx::Vector2dF& latest_overscroll_delta, | 50 const gfx::Vector2dF& latest_overscroll_delta, |
| 50 const gfx::Vector2dF& current_fling_velocity) = 0; | 51 const gfx::Vector2dF& current_fling_velocity) = 0; |
| 51 | 52 |
| 52 virtual void PostInvalidate(SynchronousCompositor* compositor) = 0; | 53 virtual void PostInvalidate(SynchronousCompositor* compositor) = 0; |
| 53 | 54 |
| 54 virtual void DidUpdateContent(SynchronousCompositor* compositor) = 0; | 55 virtual void DidUpdateContent(SynchronousCompositor* compositor) = 0; |
| 55 | 56 |
| 56 virtual ui::TouchHandleDrawable* CreateDrawable() = 0; | 57 virtual ui::TouchHandleDrawable* CreateDrawable() = 0; |
| 57 | 58 |
| 58 virtual void OnDrawHardwareProcessFrame( | 59 virtual void OnDrawHardwareProcessFrameFuture( |
| 59 content::SynchronousCompositor::Frame frame) = 0; | 60 const scoped_refptr<content::SynchronousCompositor::FrameFuture>& |
| 61 frame_future) = 0; |
| 60 | 62 |
| 61 protected: | 63 protected: |
| 62 SynchronousCompositorClient() {} | 64 SynchronousCompositorClient() {} |
| 63 virtual ~SynchronousCompositorClient() {} | 65 virtual ~SynchronousCompositorClient() {} |
| 64 | 66 |
| 65 private: | 67 private: |
| 66 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorClient); | 68 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorClient); |
| 67 }; | 69 }; |
| 68 | 70 |
| 69 } // namespace content | 71 } // namespace content |
| 70 | 72 |
| 71 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_ | 73 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_ |
| OLD | NEW |