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

Unified Diff: content/browser/android/in_process/synchronous_compositor_impl.h

Issue 619843002: cc: Make separate interface for BeginFrame ipc from OutputSurface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/android/in_process/synchronous_compositor_impl.h
diff --git a/content/browser/android/in_process/synchronous_compositor_impl.h b/content/browser/android/in_process/synchronous_compositor_impl.h
index 9b92cef37810b3eeaf839fc62fad5e954d3d2990..ece81132ecbeb0cada15f1d0e3178b3a3a6f4581 100644
--- a/content/browser/android/in_process/synchronous_compositor_impl.h
+++ b/content/browser/android/in_process/synchronous_compositor_impl.h
@@ -18,6 +18,7 @@
#include "ipc/ipc_message.h"
namespace cc {
+class BeginFrameSource;
class InputHandler;
}
@@ -27,6 +28,7 @@ class WebInputEvent;
namespace content {
class InputHandlerManager;
+class SynchronousCompositorExternalBeginFrameSource;
struct DidOverscrollParams;
// The purpose of this class is to act as the intermediary between the various
@@ -48,6 +50,10 @@ class SynchronousCompositorImpl
InputEventAckState HandleInputEvent(const blink::WebInputEvent& input_event);
+ void SetExternalBeginFrameSource(
+ SynchronousCompositorExternalBeginFrameSource* begin_frame_source);
+ void SetContinuousInvalidate(bool needs_begin_frames) const;
+
// SynchronousCompositor
virtual void SetClient(SynchronousCompositorClient* compositor_client)
override;
@@ -71,7 +77,6 @@ class SynchronousCompositorImpl
SynchronousCompositorOutputSurface* output_surface) override;
virtual void DidDestroySynchronousOutputSurface(
SynchronousCompositorOutputSurface* output_surface) override;
- virtual void SetContinuousInvalidate(bool enable) override;
virtual void DidActivatePendingTree() override;
// LayerScrollOffsetDelegate
@@ -100,8 +105,10 @@ class SynchronousCompositorImpl
SynchronousCompositorClient* compositor_client_;
SynchronousCompositorOutputSurface* output_surface_;
+ SynchronousCompositorExternalBeginFrameSource* begin_frame_source_;
WebContents* contents_;
cc::InputHandler* input_handler_;
+ bool invoking_composite_;
base::WeakPtrFactory<SynchronousCompositorImpl> weak_ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698