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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.cc

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/browser/renderer_host/render_widget_host_impl.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index 0671338bb05f91d627f6ff57cba2f72b72a6c618..668b75bad9ebefd210b14f38a36e62f274cc4290 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -1300,6 +1300,7 @@ void RenderWidgetHostImpl::OnMsgUpdateRect(
params.bitmap_rect,
params.copy_rects,
params.view_size,
+ params.scale_factor,
base::Bind(&RenderWidgetHostImpl::DidUpdateBackingStore,
weak_factory_.GetWeakPtr(), params, paint_start));
}
@@ -1576,6 +1577,7 @@ bool RenderWidgetHostImpl::PaintBackingStoreRect(
const gfx::Rect& bitmap_rect,
const std::vector<gfx::Rect>& copy_rects,
const gfx::Size& view_size,
+ float scale_factor,
const base::Closure& completion_callback) {
// The view may be destroyed already.
if (!view_)
@@ -1592,7 +1594,8 @@ bool RenderWidgetHostImpl::PaintBackingStoreRect(
bool needs_full_paint = false;
bool scheduled_completion_callback = false;
BackingStoreManager::PrepareBackingStore(this, view_size, bitmap, bitmap_rect,
- copy_rects, completion_callback,
+ copy_rects, scale_factor,
+ completion_callback,
&needs_full_paint,
&scheduled_completion_callback);
if (needs_full_paint) {

Powered by Google App Engine
This is Rietveld 408576698