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

Unified Diff: components/exo/surface.cc

Issue 2843723003: Make exo::Surface set device_scale_factor. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/surface.cc
diff --git a/components/exo/surface.cc b/components/exo/surface.cc
index 7b57ba82cb517c29d46c0592fe9d15a6e64ffc4f..f5f20574d46b56d8e57adaee854f572e83bb7b3c 100644
--- a/components/exo/surface.cc
+++ b/components/exo/surface.cc
@@ -847,6 +847,7 @@ void Surface::UpdateSurface(bool full_damage) {
current_begin_frame_ack_.has_damage = true;
}
frame.metadata.begin_frame_ack = current_begin_frame_ack_;
+ frame.metadata.device_scale_factor = state_.buffer_scale;
reveman 2017/04/25 20:56:17 I don't think this is correct as setting the viewp
kylechar 2017/04/26 13:56:52 Okay, that mostly makes sense to me and I misunder
reveman 2017/04/26 17:48:42 We always send the primary scale right now. Real m
kylechar 2017/04/27 18:24:56 Done.
if (current_resource_.id) {
// Texture quad is only needed if buffer is not fully transparent.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698