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

Unified Diff: content/common/view_messages.h

Issue 10540144: Tag TransportDIBs with the device scale factor they expect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 8 years, 6 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: content/common/view_messages.h
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index 0cbe5fcf54e8aeb71974b408c2400ca119d061d7..f76f04ae923e7771b82d05636a8564a9fc28e71e 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -534,6 +534,10 @@ IPC_STRUCT_BEGIN(ViewHostMsg_UpdateRect_Params)
// Whether or not the renderer expects a ViewMsg_UpdateRect_ACK for this
// update. True for 2D painting, but false for accelerated compositing.
IPC_STRUCT_MEMBER(bool, needs_ack)
+
+ // All the above coordinates are in DIP. This is the scale factor needed
+ // to convert them to pixels.
+ IPC_STRUCT_MEMBER(float, scale_factor)
IPC_STRUCT_END()
IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params)

Powered by Google App Engine
This is Rietveld 408576698