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

Unified Diff: services/ui/surfaces/display_compositor.cc

Issue 2547243002: Set device scale factor in CompositorFrame and scale frame size in WS. (Closed)
Patch Set: dsf Created 4 years 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: services/ui/surfaces/display_compositor.cc
diff --git a/services/ui/surfaces/display_compositor.cc b/services/ui/surfaces/display_compositor.cc
index ffa022361709f1b6c81c83281b93532cbf8dbe79..bce51bcbea5e8751d736115d7648a7999d5a1566 100644
--- a/services/ui/surfaces/display_compositor.cc
+++ b/services/ui/surfaces/display_compositor.cc
@@ -226,6 +226,7 @@ void DisplayCompositor::OnSurfaceCreated(const cc::SurfaceId& surface_id,
const gfx::Size& frame_size,
float device_scale_factor) {
DCHECK(thread_checker_.CalledOnValidThread());
+ DCHECK(device_scale_factor);
kylechar 2016/12/15 18:25:03 DCHECK_GT(device_scale_factor, 0.0f) maybe so it's
riajiang 2016/12/15 19:01:43 Done.
// We can get into a situation where multiple CompositorFrames arrive for a
// CompositorFrameSink before the DisplayCompositorClient can add any
// references for the frame. When the second frame with a new size arrives,

Powered by Google App Engine
This is Rietveld 408576698