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

Unified Diff: ui/aura/local/compositor_frame_sink_local.h

Issue 2848223003: Enforce constant size and device scale factor for surfaces (Closed)
Patch Set: Fixed dchecks 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: ui/aura/local/compositor_frame_sink_local.h
diff --git a/ui/aura/local/compositor_frame_sink_local.h b/ui/aura/local/compositor_frame_sink_local.h
index 65afe361958dc798b882c6308c7e782cebb15715..222fbf3a34992d790541e93765c3ccc2b7cccfaf 100644
--- a/ui/aura/local/compositor_frame_sink_local.h
+++ b/ui/aura/local/compositor_frame_sink_local.h
@@ -60,7 +60,8 @@ class CompositorFrameSinkLocal : public cc::CompositorFrameSink,
const cc::FrameSinkId frame_sink_id_;
cc::SurfaceManager* const surface_manager_;
std::unique_ptr<cc::CompositorFrameSinkSupport> support_;
- gfx::Size last_submitted_frame_size_;
+ gfx::Size surface_size_;
+ float device_scale_factor_ = 0;
cc::LocalSurfaceIdAllocator id_allocator_;
cc::LocalSurfaceId local_surface_id_;
std::unique_ptr<cc::ExternalBeginFrameSource> begin_frame_source_;

Powered by Google App Engine
This is Rietveld 408576698