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

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

Issue 2848223003: Enforce constant size and device scale factor for surfaces (Closed)
Patch Set: Address comments Created 3 years, 7 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/renderer/android/synchronous_compositor_frame_sink.h
diff --git a/content/renderer/android/synchronous_compositor_frame_sink.h b/content/renderer/android/synchronous_compositor_frame_sink.h
index bab49796d99d833cb0c97d66eddce7fd4bd9eed6..d906795b863e3ac61bb2f114957a1868474e4554 100644
--- a/content/renderer/android/synchronous_compositor_frame_sink.h
+++ b/content/renderer/android/synchronous_compositor_frame_sink.h
@@ -156,6 +156,9 @@ class SynchronousCompositorFrameSink
std::unique_ptr<cc::LocalSurfaceIdAllocator> local_surface_id_allocator_;
cc::LocalSurfaceId child_local_surface_id_;
cc::LocalSurfaceId root_local_surface_id_;
+ gfx::Size child_size_;
+ gfx::Size display_size_;
+ float device_scale_factor_ = 0;
// Uses surface_manager_.
std::unique_ptr<cc::CompositorFrameSinkSupport> root_support_;
// Uses surface_manager_.

Powered by Google App Engine
This is Rietveld 408576698