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

Unified Diff: content/browser/android/in_process/synchronous_compositor_output_surface.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: Fix rebase compile errors. Created 5 years, 9 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_output_surface.h
diff --git a/content/browser/android/in_process/synchronous_compositor_output_surface.h b/content/browser/android/in_process/synchronous_compositor_output_surface.h
index 584bedc864f4725a1f94379821d42d690c30bb04..adc65b45ce8d6252d32dd256402c9f8ec1bcd75a 100644
--- a/content/browser/android/in_process/synchronous_compositor_output_surface.h
+++ b/content/browser/android/in_process/synchronous_compositor_output_surface.h
@@ -32,7 +32,7 @@ namespace content {
class FrameSwapMessageQueue;
class SynchronousCompositorClient;
-class SynchronousCompositorExternalBeginFrameSource;
+class SynchronousCompositorImpl;
class SynchronousCompositorOutputSurface;
class WebGraphicsContext3DCommandBufferImpl;
@@ -52,13 +52,13 @@ class SynchronousCompositorOutputSurface
scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue);
~SynchronousCompositorOutputSurface() override;
+ void SetCompositor(SynchronousCompositorImpl* compositor);
+
// OutputSurface.
bool BindToClient(cc::OutputSurfaceClient* surface_client) override;
void Reshape(const gfx::Size& size, float scale_factor) override;
void SwapBuffers(cc::CompositorFrame* frame) override;
-
- void SetBeginFrameSource(
- SynchronousCompositorExternalBeginFrameSource* begin_frame_source);
+ void Invalidate() override;
// Partial SynchronousCompositor API implementation.
bool InitializeHwDraw(
@@ -93,6 +93,9 @@ class SynchronousCompositorOutputSurface
const int routing_id_;
bool registered_;
+ // Not owned.
+ SynchronousCompositorImpl* compositor_;
+
gfx::Transform cached_hw_transform_;
gfx::Rect cached_hw_viewport_;
gfx::Rect cached_hw_clip_;
@@ -104,13 +107,10 @@ class SynchronousCompositorOutputSurface
cc::ManagedMemoryPolicy memory_policy_;
- cc::OutputSurfaceClient* output_surface_client_;
scoped_ptr<cc::CompositorFrame> frame_holder_;
scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_;
- SynchronousCompositorExternalBeginFrameSource* begin_frame_source_;
-
DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface);
};

Powered by Google App Engine
This is Rietveld 408576698