| 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/memory/ref_counted.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 const gfx::Vector2dF& accumulated_overscroll, | 49 const gfx::Vector2dF& accumulated_overscroll, |
| 50 const gfx::Vector2dF& latest_overscroll_delta, | 50 const gfx::Vector2dF& latest_overscroll_delta, |
| 51 const gfx::Vector2dF& current_fling_velocity) = 0; | 51 const gfx::Vector2dF& current_fling_velocity) = 0; |
| 52 | 52 |
| 53 virtual void PostInvalidate(SynchronousCompositor* compositor) = 0; | 53 virtual void PostInvalidate(SynchronousCompositor* compositor) = 0; |
| 54 | 54 |
| 55 virtual void DidUpdateContent(SynchronousCompositor* compositor) = 0; | 55 virtual void DidUpdateContent(SynchronousCompositor* compositor) = 0; |
| 56 | 56 |
| 57 virtual ui::TouchHandleDrawable* CreateDrawable() = 0; | 57 virtual ui::TouchHandleDrawable* CreateDrawable() = 0; |
| 58 | 58 |
| 59 virtual void OnDrawHardwareProcessFrameFuture( | |
| 60 const scoped_refptr<content::SynchronousCompositor::FrameFuture>& | |
| 61 frame_future) = 0; | |
| 62 | |
| 63 protected: | 59 protected: |
| 64 SynchronousCompositorClient() {} | 60 SynchronousCompositorClient() {} |
| 65 virtual ~SynchronousCompositorClient() {} | 61 virtual ~SynchronousCompositorClient() {} |
| 66 | 62 |
| 67 private: | 63 private: |
| 68 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorClient); | 64 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorClient); |
| 69 }; | 65 }; |
| 70 | 66 |
| 71 } // namespace content | 67 } // namespace content |
| 72 | 68 |
| 73 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_ | 69 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_ |
| OLD | NEW |