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

Issue 1492353002: Consolidate Windows bitmap and DC code (Closed)

Created:
5 years ago by tomhudson
Modified:
4 years, 4 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@move-printing-dc-from-device
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Consolidate Windows bitmap and DC code While removing skia::BitmapPlatformDevice, reviewers spotted duplicate code between ui::gfx and skia; makes a single copy in Skia while deleting unused functions. R=danakj@chromium.org,fmalita@chromium.org,pkasting@chromium.org,sky@chromium.org,thestig@chromium.org BUG=543755

Patch Set 1 #

Patch Set 2 : add forward decl, finish CreateOffscreenSurface #

Patch Set 3 : #

Patch Set 4 : typo fix #

Patch Set 5 : rebase #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : rebase #

Patch Set 11 : Fix bugs, extend comments, remove unused parameter #

Total comments: 48

Patch Set 12 : Respond to Chromium reviewers #

Patch Set 13 : Fix Windows compile error #

Patch Set 14 : #

Total comments: 9

Patch Set 15 : #

Patch Set 16 : #

Patch Set 17 #

Patch Set 18 #

Patch Set 19 #

Patch Set 20 : remove !_WIN64 restriction on error reporting #

Total comments: 20

Patch Set 21 : Review #

Total comments: 1

Patch Set 22 : Fix nested creation causing TaskManager crash? #

Patch Set 23 : Add missing #include #

Patch Set 24 : Consolidate Windows bitmap and DC code #

Patch Set 25 : remove more unnecessary functions #

Patch Set 26 : #include cleanup and header fix #

Patch Set 27 : Move some #includes into .cc files #

Patch Set 28 : expose CreateHBitmap() #

Patch Set 29 : properly merge both versions of CreateHBitmap() #

Patch Set 30 : fix another callsite #

Patch Set 31 : rebase #

Patch Set 32 : fix bad merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -129 lines) Patch
M printing/emf_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -2 lines 0 comments Download
M skia/ext/bitmap_platform_device_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 4 chunks +4 lines, -39 lines 0 comments Download
M skia/ext/skia_utils_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +7 lines, -0 lines 0 comments Download
M skia/ext/skia_utils_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 4 chunks +47 lines, -2 lines 0 comments Download
M ui/base/dragdrop/drag_utils_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 chunks +3 lines, -2 lines 0 comments Download
M ui/gfx/gdi_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +0 lines, -16 lines 0 comments Download
M ui/gfx/gdi_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -64 lines 0 comments Download
M ui/gfx/icon_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +2 lines, -2 lines 0 comments Download
M ui/native_theme/native_theme_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 30 (12 generated)
tomhudson
Florin, could you take a look at the skia/ext/ part of this before I send ...
4 years, 10 months ago (2016-02-10 17:04:09 UTC) #2
Evan Stade
https://codereview.chromium.org/1492353002/diff/200001/ui/native_theme/native_theme_win.cc File ui/native_theme/native_theme_win.cc (right): https://codereview.chromium.org/1492353002/diff/200001/ui/native_theme/native_theme_win.cc#newcode371 ui/native_theme/native_theme_win.cc:371: SkSurface* surface = nullptr; why is this declared out ...
4 years, 10 months ago (2016-02-10 21:41:04 UTC) #4
Peter Kasting
https://codereview.chromium.org/1492353002/diff/200001/skia/ext/skia_utils_win.cc File skia/ext/skia_utils_win.cc (right): https://codereview.chromium.org/1492353002/diff/200001/skia/ext/skia_utils_win.cc#newcode30 skia/ext/skia_utils_win.cc:30: // CreateDIBSection appears to get unhappy if we create ...
4 years, 10 months ago (2016-02-11 00:19:26 UTC) #6
tomhudson
https://codereview.chromium.org/1492353002/diff/200001/skia/ext/skia_utils_win.cc File skia/ext/skia_utils_win.cc (right): https://codereview.chromium.org/1492353002/diff/200001/skia/ext/skia_utils_win.cc#newcode30 skia/ext/skia_utils_win.cc:30: // CreateDIBSection appears to get unhappy if we create ...
4 years, 10 months ago (2016-02-16 17:47:54 UTC) #7
Peter Kasting
https://codereview.chromium.org/1492353002/diff/200001/skia/ext/skia_utils_win.cc File skia/ext/skia_utils_win.cc (right): https://codereview.chromium.org/1492353002/diff/200001/skia/ext/skia_utils_win.cc#newcode30 skia/ext/skia_utils_win.cc:30: // CreateDIBSection appears to get unhappy if we create ...
4 years, 10 months ago (2016-02-16 21:12:10 UTC) #8
Peter Kasting
Tom, did this fall off your radar?
4 years, 7 months ago (2016-04-29 02:22:42 UTC) #10
tomhudson
Still on my TODO stack, just keeps getting pushed down by other bits of Chrome/Skia ...
4 years, 7 months ago (2016-04-29 14:02:28 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1492353002/300001
4 years, 6 months ago (2016-06-08 19:44:23 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/203177) win_chromium_x64_rel_ng on ...
4 years, 6 months ago (2016-06-08 20:34:32 UTC) #15
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/1492353002/diff/200001/skia/ext/skia_utils_win.cc File skia/ext/skia_utils_win.cc (right): https://codereview.chromium.org/1492353002/diff/200001/skia/ext/skia_utils_win.cc#newcode53 skia/ext/skia_utils_win.cc:53: #if !defined(_WIN64) On 2016/02/16 21:12:09, Peter Kasting wrote: > ...
4 years, 6 months ago (2016-06-12 19:13:16 UTC) #17
tomhudson
https://codereview.chromium.org/1492353002/diff/200001/skia/ext/skia_utils_win.cc File skia/ext/skia_utils_win.cc (right): https://codereview.chromium.org/1492353002/diff/200001/skia/ext/skia_utils_win.cc#newcode30 skia/ext/skia_utils_win.cc:30: // CreateDIBSection appears to get unhappy if we create ...
4 years, 6 months ago (2016-06-21 22:20:23 UTC) #18
Peter Kasting
https://codereview.chromium.org/1492353002/diff/200001/skia/ext/skia_utils_win.cc File skia/ext/skia_utils_win.cc (right): https://codereview.chromium.org/1492353002/diff/200001/skia/ext/skia_utils_win.cc#newcode30 skia/ext/skia_utils_win.cc:30: // CreateDIBSection appears to get unhappy if we create ...
4 years, 6 months ago (2016-06-22 02:23:34 UTC) #19
tomhudson
JSHeapMemory failures on debug bot seem unconnected. https://codereview.chromium.org/1492353002/diff/380001/skia/ext/skia_utils_win.cc File skia/ext/skia_utils_win.cc (right): https://codereview.chromium.org/1492353002/diff/380001/skia/ext/skia_utils_win.cc#newcode33 skia/ext/skia_utils_win.cc:33: // These ...
4 years, 6 months ago (2016-06-22 21:29:58 UTC) #20
tomhudson
Nope, those failures are possibly connected to my patch, but I may need Windows-team help ...
4 years, 6 months ago (2016-06-22 22:02:18 UTC) #21
Peter Kasting
LGTM https://codereview.chromium.org/1492353002/diff/380001/skia/ext/skia_utils_win.cc File skia/ext/skia_utils_win.cc (right): https://codereview.chromium.org/1492353002/diff/380001/skia/ext/skia_utils_win.cc#newcode189 skia/ext/skia_utils_win.cc:189: SkASSERT(hdc); On 2016/06/22 21:29:58, tomhudson wrote: > On ...
4 years, 6 months ago (2016-06-22 23:43:52 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1492353002/420001
4 years, 6 months ago (2016-06-23 19:40:20 UTC) #25
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/244362) win_clang on ...
4 years, 6 months ago (2016-06-23 20:10:25 UTC) #27
tomhudson
4 years, 4 months ago (2016-08-03 18:28:44 UTC) #30
Most of these changes have been landed piecemeal in other CLs.

Powered by Google App Engine
This is Rietveld 408576698