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

Issue 10540144: Tag TransportDIBs with the device scale factor they expect. (Closed)

Created:
8 years, 6 months ago by Nico
Modified:
8 years, 6 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, jochen+watch-content_chromium.org, rjkroege, jamesr, sadrul
Visibility:
Public.

Description

Tag TransportDIBs with the device scale factor they expect. After DPI changes, the renderer can send paints at the old DPIness for a few frames, until the "new DPIness" IPC arrives. Tag TransportDIBs with the intended scale factor, so that the browser process can compensate for paints at the wrong resolution temporarily. Implement this compensation logic on mac. Most of the DPI switching infrastructure still isn't hooked up, so almost no observable behavior change. BUG=128267 TEST=none (chrome/mac no longer crashes on DPIness change if a paint is pending) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=141962

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 8

Patch Set 4 : comments #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -7 lines) Patch
M content/browser/renderer_host/backing_store.h View 1 2 3 2 chunks +4 lines, -1 line 2 comments Download
M content/browser/renderer_host/backing_store_gtk.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/backing_store_gtk.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/backing_store_mac.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/backing_store_mac.mm View 3 chunks +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/backing_store_manager.h View 1 2 3 2 chunks +9 lines, -2 lines 1 comment Download
M content/browser/renderer_host/backing_store_manager.cc View 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/backing_store_skia.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/backing_store_skia.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/backing_store_win.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/backing_store_win.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 3 chunks +4 lines, -1 line 0 comments Download
M content/browser/renderer_host/test_backing_store.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/test_backing_store.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/common/view_messages.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/render_widget.cc View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Nico
8 years, 6 months ago (2012-06-13 19:10:50 UTC) #1
Nico
+Avi for owners (I checked the approach in person with oshima for the software path ...
8 years, 6 months ago (2012-06-13 20:01:11 UTC) #2
jamesr
content/renderer LGTM
8 years, 6 months ago (2012-06-13 20:01:44 UTC) #3
Avi (use Gerrit)
https://chromiumcodereview.appspot.com/10540144/diff/6002/content/browser/renderer_host/backing_store.h File content/browser/renderer_host/backing_store.h (right): https://chromiumcodereview.appspot.com/10540144/diff/6002/content/browser/renderer_host/backing_store.h#newcode51 content/browser/renderer_host/backing_store.h:51: // DIBs. |scale_factor| contains the expected device scale factor ...
8 years, 6 months ago (2012-06-13 20:34:12 UTC) #4
Nico
Thanks, all done. https://chromiumcodereview.appspot.com/10540144/diff/6002/content/browser/renderer_host/backing_store.h File content/browser/renderer_host/backing_store.h (right): https://chromiumcodereview.appspot.com/10540144/diff/6002/content/browser/renderer_host/backing_store.h#newcode51 content/browser/renderer_host/backing_store.h:51: // DIBs. |scale_factor| contains the expected ...
8 years, 6 months ago (2012-06-13 20:38:50 UTC) #5
Avi (use Gerrit)
Re DIP/DIB, that's what I thought, but I wanted to make sure I wasn't misunderstanding ...
8 years, 6 months ago (2012-06-13 20:44:40 UTC) #6
Nico
both done. thanks! https://chromiumcodereview.appspot.com/10540144/diff/4006/content/browser/renderer_host/backing_store.h File content/browser/renderer_host/backing_store.h (right): https://chromiumcodereview.appspot.com/10540144/diff/4006/content/browser/renderer_host/backing_store.h#newcode48 content/browser/renderer_host/backing_store.h:48: // Paints the bitmap from the ...
8 years, 6 months ago (2012-06-13 20:46:57 UTC) #7
oshima
8 years, 6 months ago (2012-06-13 20:51:50 UTC) #8
lgtm

Powered by Google App Engine
This is Rietveld 408576698