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