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

Unified Diff: content/browser/renderer_host/compositor_impl_android.h

Issue 2527283003: cc: Introduce BeginFrame sequence numbers and acknowledgements.
Patch Set: Address Brian's comments. Created 4 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/compositor_impl_android.h
diff --git a/content/browser/renderer_host/compositor_impl_android.h b/content/browser/renderer_host/compositor_impl_android.h
index e18b3f58e539868103c1b23f7a9232523e25d279..1530644a2d6733d44558a0d34a99ecdb79a4bbae 100644
--- a/content/browser/renderer_host/compositor_impl_android.h
+++ b/content/browser/renderer_host/compositor_impl_android.h
@@ -53,21 +53,11 @@ class CONTENT_EXPORT CompositorImpl
public ui::UIResourceProvider,
public ui::WindowAndroidCompositor {
public:
- class VSyncObserver {
- public:
- virtual void OnVSync(base::TimeTicks timebase,
- base::TimeDelta interval) = 0;
- };
-
CompositorImpl(CompositorClient* client, gfx::NativeWindow root_window);
~CompositorImpl() override;
static bool IsInitialized();
- void AddObserver(VSyncObserver* observer);
- void RemoveObserver(VSyncObserver* observer);
- void OnNeedsBeginFramesChange(bool needs_begin_frames);
-
// ui::ResourceProvider implementation.
cc::UIResourceId CreateUIResource(cc::UIResourceClient* client) override;
void DeleteUIResource(cc::UIResourceId resource_id) override;
@@ -112,8 +102,6 @@ class CONTENT_EXPORT CompositorImpl
void AttachLayerForReadback(scoped_refptr<cc::Layer> layer) override;
void RequestCopyOfOutputOnRootLayer(
std::unique_ptr<cc::CopyOutputRequest> request) override;
- void OnVSync(base::TimeTicks frame_time,
- base::TimeDelta vsync_period) override;
void SetNeedsAnimate() override;
cc::FrameSinkId GetFrameSinkId() override;
@@ -146,7 +134,6 @@ class CONTENT_EXPORT CompositorImpl
scoped_refptr<cc::Layer> readback_layer_tree_;
// Destruction order matters here:
- base::ObserverList<VSyncObserver, true> observer_list_;
std::unique_ptr<cc::AnimationHost> animation_host_;
std::unique_ptr<cc::LayerTreeHost> host_;
ui::ResourceManagerImpl resource_manager_;
@@ -180,7 +167,6 @@ class CONTENT_EXPORT CompositorImpl
bool compositor_frame_sink_request_pending_;
gpu::Capabilities gpu_capabilities_;
- bool needs_begin_frames_;
base::WeakPtrFactory<CompositorImpl> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(CompositorImpl);
« no previous file with comments | « content/browser/renderer_host/browser_compositor_view_mac.mm ('k') | content/browser/renderer_host/compositor_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698