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

Unified Diff: cc/surfaces/direct_compositor_frame_sink.h

Issue 2848223003: Enforce constant size and device scale factor for surfaces (Closed)
Patch Set: c 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: cc/surfaces/direct_compositor_frame_sink.h
diff --git a/cc/surfaces/direct_compositor_frame_sink.h b/cc/surfaces/direct_compositor_frame_sink.h
index 06ac4c3bb15eb7adfd2c95fcf048fcba59e04c3c..54d0d011a6de406234991513e8ae4869d9a10df9 100644
--- a/cc/surfaces/direct_compositor_frame_sink.h
+++ b/cc/surfaces/direct_compositor_frame_sink.h
@@ -76,11 +76,12 @@ class CC_SURFACES_EXPORT DirectCompositorFrameSink
base::ThreadChecker thread_checker_;
const FrameSinkId frame_sink_id_;
- LocalSurfaceId delegated_local_surface_id_;
+ LocalSurfaceId local_surface_id_;
SurfaceManager* surface_manager_;
LocalSurfaceIdAllocator local_surface_id_allocator_;
Display* display_;
gfx::Size last_swap_frame_size_;
+ float device_scale_factor_ = 0.f;
Fady Samuel 2017/05/17 00:40:50 Hmm, so it's starting out invalid? Maybe start it
Saman Sami 2017/05/17 00:55:17 It'll be updated from the metadata though.
bool is_lost_ = false;
std::unique_ptr<ExternalBeginFrameSource> begin_frame_source_;

Powered by Google App Engine
This is Rietveld 408576698