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

Unified Diff: content/browser/renderer_host/backing_store.h

Issue 10540144: Tag TransportDIBs with the device scale factor they expect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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/browser/renderer_host/backing_store.h
diff --git a/content/browser/renderer_host/backing_store.h b/content/browser/renderer_host/backing_store.h
index 580616a617a5fbcf58c9b5f973121509189a1118..e566b71630d6206cd83a015e5de2a05effa23510 100644
--- a/content/browser/renderer_host/backing_store.h
+++ b/content/browser/renderer_host/backing_store.h
@@ -47,7 +47,9 @@ class CONTENT_EXPORT BackingStore {
// Paints the bitmap from the renderer onto the backing store. bitmap_rect
// gives the location of bitmap, and copy_rects specifies the subregion(s) of
- // the backingstore to be painted from the bitmap.
+ // the backingstore to be painted from the bitmap. All coordinates are in
+ // DIBs. |scale_factor| contains the expected device scale factor of the
Avi (use Gerrit) 2012/06/13 20:34:13 DIBs or DIPs? Here it's DIBs.
Nico 2012/06/13 20:38:50 DIPs "device-independent pixels". DIBs is somethin
+ // backing store.
//
// PaintToBackingStore does not need to guarantee that this has happened by
// the time it returns, in which case it will set |scheduled_callback| to
@@ -57,6 +59,7 @@ class CONTENT_EXPORT BackingStore {
TransportDIB::Id bitmap,
const gfx::Rect& bitmap_rect,
const std::vector<gfx::Rect>& copy_rects,
+ float scale_factor,
const base::Closure& completion_callback,
bool* scheduled_completion_callback) = 0;

Powered by Google App Engine
This is Rietveld 408576698