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

Unified Diff: components/display_compositor/gpu_root_compositor_frame_sink.cc

Issue 2669183002: Seems incorrect to se device_scale_factor in SetLocalSurfaceId.
Patch Set: Seems incorrect to set device_scale_factor in SetLocalSurfaceId. Added new function SetDeviceScaleF… Created 3 years, 10 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: components/display_compositor/gpu_root_compositor_frame_sink.cc
diff --git a/components/display_compositor/gpu_root_compositor_frame_sink.cc b/components/display_compositor/gpu_root_compositor_frame_sink.cc
index 4254c6b9f0a70601efc1e8a4e1de0f6020eac00b..28479f0fd81aa4ab6e0f6c4ea02d5a86d84c0fc4 100644
--- a/components/display_compositor/gpu_root_compositor_frame_sink.cc
+++ b/components/display_compositor/gpu_root_compositor_frame_sink.cc
@@ -70,9 +70,13 @@ void GpuRootCompositorFrameSink::SetOutputIsSecure(bool secure) {
}
void GpuRootCompositorFrameSink::SetLocalSurfaceId(
- const cc::LocalSurfaceId& local_surface_id,
+ const cc::LocalSurfaceId& local_surface_id) {
+ display_->SetLocalSurfaceId(local_surface_id);
+}
+
+void GpuRootCompositorFrameSink::SetDeviceScaleFactor(
float scale_factor) {
- display_->SetLocalSurfaceId(local_surface_id, scale_factor);
+ display_->SetDeviceScaleFactor(scale_factor);
}
void GpuRootCompositorFrameSink::EvictFrame() {

Powered by Google App Engine
This is Rietveld 408576698