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

Issue 7465104: Remove dependency on VectorPlatformDeviceEmf. (Closed)

Created:
9 years, 4 months ago by Jeff Timanus
Modified:
9 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, brettw-cc_chromium.org, reed1
Visibility:
Public.

Description

Remove cast to VectorPlatformDeviceEMF. Dependencies on PlatformDevice, and its children should be minimized. Also, added some OVERRIDE tags to touched files. BUG=None TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=95427

Patch Set 1 #

Total comments: 5

Patch Set 2 : Address style nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -9 lines) Patch
M chrome/renderer/print_web_view_helper_win.cc View 1 2 chunks +3 lines, -4 lines 0 comments Download
M skia/ext/platform_device_win.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M skia/ext/vector_platform_device_emf_win.h View 2 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Jeff Timanus
PTAL. Removed the blind cast to a PlatformDevice derivative, as discussed in earlier email thread.
9 years, 4 months ago (2011-08-03 21:15:51 UTC) #1
reed1
Deferring to Steve and Alok. I don't really understand alpha-blend-used before or after this change.
9 years, 4 months ago (2011-08-04 12:25:35 UTC) #2
alokp
Steve would be the best person to review this. http://codereview.chromium.org/7465104/diff/1/chrome/renderer/print_web_view_helper_win.cc File chrome/renderer/print_web_view_helper_win.cc (right): http://codereview.chromium.org/7465104/diff/1/chrome/renderer/print_web_view_helper_win.cc#newcode209 chrome/renderer/print_web_view_helper_win.cc:209: ...
9 years, 4 months ago (2011-08-04 16:06:54 UTC) #3
vandebo (ex-Chrome)
LGTM after Alok's comments. http://codereview.chromium.org/7465104/diff/1/skia/ext/platform_device_win.h File skia/ext/platform_device_win.h (right): http://codereview.chromium.org/7465104/diff/1/skia/ext/platform_device_win.h#newcode56 skia/ext/platform_device_win.h:56: virtual bool AlphaBlendUsed() const { ...
9 years, 4 months ago (2011-08-04 16:28:44 UTC) #4
Jeff Timanus
9 years, 4 months ago (2011-08-04 16:30:33 UTC) #5
http://codereview.chromium.org/7465104/diff/1/chrome/renderer/print_web_view_...
File chrome/renderer/print_web_view_helper_win.cc (right):

http://codereview.chromium.org/7465104/diff/1/chrome/renderer/print_web_view_...
chrome/renderer/print_web_view_helper_win.cc:209: skia::PlatformDevice*
platform_device =skia::GetPlatformDevice(device);
On 2011/08/04 16:06:54, Alok Priyadarshi wrote:
> nit: space after =

Done.

http://codereview.chromium.org/7465104/diff/1/skia/ext/platform_device_win.h
File skia/ext/platform_device_win.h (right):

http://codereview.chromium.org/7465104/diff/1/skia/ext/platform_device_win.h#...
skia/ext/platform_device_win.h:56: virtual bool AlphaBlendUsed() const { return
false; }
On 2011/08/04 16:06:54, Alok Priyadarshi wrote:
> Could you add a comment what it means?

Done.

Powered by Google App Engine
This is Rietveld 408576698