Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(660)

Side by Side Diff: content/public/browser/android/synchronous_compositor_client.h

Issue 2347563003: Added FrameFuture class (Closed)
Patch Set: Code review Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/public/browser/android/synchronous_compositor.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/public/browser/android/synchronous_compositor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698