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

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

Issue 817603002: cc: Make scheduling be driven by vsync for android webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
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/basictypes.h" 8 #include "base/basictypes.h"
9 #include "ui/gfx/geometry/size_f.h" 9 #include "ui/gfx/geometry/size_f.h"
10 #include "ui/gfx/geometry/vector2d_f.h" 10 #include "ui/gfx/geometry/vector2d_f.h"
(...skipping 21 matching lines...) Expand all
32 const gfx::SizeF& scrollable_size, 32 const gfx::SizeF& scrollable_size,
33 float page_scale_factor, 33 float page_scale_factor,
34 float min_page_scale_factor, 34 float min_page_scale_factor,
35 float max_page_scale_factor) = 0; 35 float max_page_scale_factor) = 0;
36 virtual bool IsExternalFlingActive() const = 0; 36 virtual bool IsExternalFlingActive() const = 0;
37 37
38 virtual void DidOverscroll(gfx::Vector2dF accumulated_overscroll, 38 virtual void DidOverscroll(gfx::Vector2dF accumulated_overscroll,
39 gfx::Vector2dF latest_overscroll_delta, 39 gfx::Vector2dF latest_overscroll_delta,
40 gfx::Vector2dF current_fling_velocity) = 0; 40 gfx::Vector2dF current_fling_velocity) = 0;
41 41
42 // When true, should periodically call 42 virtual void SetNeedsVSyncs(bool needs_vsyncs);
43 // SynchronousCompositorOutputSurface::DemandDrawHw. Note that this value 43
44 // can change inside DemandDrawHw call. 44 virtual void PostInvalidate();
45 virtual void SetContinuousInvalidate(bool invalidate) = 0;
46 45
47 virtual void DidUpdateContent() = 0; 46 virtual void DidUpdateContent() = 0;
48 47
49 protected: 48 protected:
50 SynchronousCompositorClient() {} 49 SynchronousCompositorClient() {}
51 virtual ~SynchronousCompositorClient() {} 50 virtual ~SynchronousCompositorClient() {}
52 51
53 private: 52 private:
54 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorClient); 53 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorClient);
55 }; 54 };
56 55
57 } // namespace content 56 } // namespace content
58 57
59 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_ 58 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698