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

Unified Diff: content/renderer/android/synchronous_compositor_output_surface.h

Issue 2187563006: sync compositor: Set display viewport for software draw (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SkISizeToSize Created 4 years, 5 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
« no previous file with comments | « cc/surfaces/display.cc ('k') | content/renderer/android/synchronous_compositor_output_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/android/synchronous_compositor_output_surface.h
diff --git a/content/renderer/android/synchronous_compositor_output_surface.h b/content/renderer/android/synchronous_compositor_output_surface.h
index 0490b8e57f4535e3b5a90f726e10a1be1c76d157..f95f5353223ae610e2e66faf6fcddbe78f7feb46 100644
--- a/content/renderer/android/synchronous_compositor_output_surface.h
+++ b/content/renderer/android/synchronous_compositor_output_surface.h
@@ -104,6 +104,8 @@ class SynchronousCompositorOutputSurface
void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override;
private:
+ class SoftwareOutputSurface;
+
void InvokeComposite(const gfx::Transform& transform,
const gfx::Rect& viewport,
const gfx::Rect& clip);
@@ -157,6 +159,8 @@ class SynchronousCompositorOutputSurface
StubDisplayClient display_client_;
// Uses surface_manager_.
std::unique_ptr<cc::Display> display_;
+ // Owned by |display_|.
+ SoftwareOutputSurface* software_output_surface_ = nullptr;
base::ThreadChecker thread_checker_;
« no previous file with comments | « cc/surfaces/display.cc ('k') | content/renderer/android/synchronous_compositor_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698