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

Issue 1432443004: Remove SkDevice and SkBaseDevice outside skia/ext/ (Closed)

Created:
5 years, 1 month ago by tomhudson
Modified:
5 years ago
CC:
blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), hal canary at chromium, jam, jbauman+watch_chromium.org, jbroman, kalyank, ozone-reviews_chromium.org, pdr+graphicswatchlist_chromium.org, piman+watch_chromium.org, rwlbuis, Stephen Chennney, sievers+watch_chromium.org, vmpstr+blinkwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

We're deprecating SkDevice usage in Chromium; this change should isolate it to skia/ext/ for simpler refactoring. I took the opportunity to also change calls to the deprecated SkCanvas::getDeviceSize() to the preferred replacement, SkCanvas::getBaseLayerSize(). R=fmalita@chromium.org,junov@chromium.org BUG=543755 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/15223e977e59eafbb2476c7224641adc1589d860 Cr-Commit-Position: refs/heads/master@{#361196}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Rebase and extend after junov's dead code elimination #

Patch Set 3 : Propagate SkPixmap changes to Windows clipboard #

Patch Set 4 : Typo #

Patch Set 5 : Remove commented-out code #

Total comments: 6

Patch Set 6 : pass SkPixmap by pointer to MakeBitmapOpaque #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -72 lines) Patch
M cc/layers/heads_up_display_layer_impl.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M cc/output/software_renderer.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/html_viewer/html_frame.cc View 1 2 chunks +0 lines, -5 lines 0 comments Download
M content/browser/compositor/software_output_device_ozone.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/compositor/software_output_device_ozone_unittest.cc View 1 3 chunks +5 lines, -6 lines 0 comments Download
M content/browser/compositor/software_output_device_win.cc View 1 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/compositor/software_output_device_x11.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/android/synchronous_compositor_output_surface.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/npapi/webplugin_delegate_proxy.cc View 1 2 chunks +5 lines, -4 lines 0 comments Download
M printing/metafile_skia_wrapper.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M printing/pdf_metafile_skia.h View 1 chunk +0 lines, -2 lines 0 comments Download
M skia/ext/analysis_canvas.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp View 1 2 chunks +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridgeTest.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageBufferSurface.cpp View 1 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.cpp View 1 chunk +1 line, -4 lines 0 comments Download
M ui/base/clipboard/clipboard_win.cc View 1 2 3 4 5 3 chunks +12 lines, -13 lines 0 comments Download
M ui/gfx/canvas.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/nine_image_painter_unittest.cc View 1 5 chunks +5 lines, -5 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_window.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M ui/views/view.cc View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 48 (14 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1432443004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1432443004/1
5 years, 1 month ago (2015-11-03 19:21:17 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/73688)
5 years, 1 month ago (2015-11-03 20:17:06 UTC) #4
Tom Hudson
Florin, PTAL - I'd also welcome suggestions where to put the ReadPixels() code in WebKit ...
5 years, 1 month ago (2015-11-04 16:01:20 UTC) #7
Justin Novosad
https://codereview.chromium.org/1432443004/diff/1/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.cpp File third_party/WebKit/Source/platform/graphics/ImageBufferSurface.cpp (right): https://codereview.chromium.org/1432443004/diff/1/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.cpp#newcode45 third_party/WebKit/Source/platform/graphics/ImageBufferSurface.cpp:45: SkBitmap ReadPixels(SkCanvas* canvas) Blink style: 'readPixels' https://codereview.chromium.org/1432443004/diff/1/third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp File third_party/WebKit/Source/platform/graphics/UnacceleratedImageBufferSurface.cpp ...
5 years, 1 month ago (2015-11-04 16:29:36 UTC) #9
Tom Hudson
On 2015/11/04 16:29:36, Justin Novosad wrote: > https://codereview.chromium.org/1432443004/diff/1/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.cpp > File third_party/WebKit/Source/platform/graphics/ImageBufferSurface.cpp (right): > > https://codereview.chromium.org/1432443004/diff/1/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.cpp#newcode45 ...
5 years, 1 month ago (2015-11-04 16:43:27 UTC) #10
Justin Novosad
On 2015/11/04 16:43:27, Tom Hudson wrote: > On 2015/11/04 16:29:36, Justin Novosad wrote: > > ...
5 years, 1 month ago (2015-11-04 19:09:25 UTC) #11
Justin Novosad
On 2015/11/04 19:09:25, Justin Novosad wrote: It looks like UnacceleratedImageBufferSurface::deprecatedBitmapForOverwrite() is dead code (still referenced, ...
5 years, 1 month ago (2015-11-04 21:35:16 UTC) #12
Tom Hudson
On 2015/11/04 21:35:16, Justin Novosad wrote: > On 2015/11/04 19:09:25, Justin Novosad wrote: > > ...
5 years, 1 month ago (2015-11-04 21:51:42 UTC) #13
Justin Novosad
On 2015/11/04 21:51:42, Tom Hudson wrote: > On 2015/11/04 21:35:16, Justin Novosad wrote: > > ...
5 years, 1 month ago (2015-11-04 22:34:44 UTC) #14
f(malita)
https://codereview.chromium.org/1432443004/diff/1/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.cpp File third_party/WebKit/Source/platform/graphics/ImageBufferSurface.cpp (right): https://codereview.chromium.org/1432443004/diff/1/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.cpp#newcode99 third_party/WebKit/Source/platform/graphics/ImageBufferSurface.cpp:99: return ReadPixels(canvas()); This looks like we're just trying to ...
5 years, 1 month ago (2015-11-05 13:53:26 UTC) #15
Tom Hudson
I'll consider this CL blocked until Justin lands https://codereview.chromium.org/1407133017/, and then rebase on top of ...
5 years, 1 month ago (2015-11-05 22:21:57 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1432443004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1432443004/20001
5 years, 1 month ago (2015-11-13 20:37:24 UTC) #19
Tom Hudson
Rebased and expanded a bit since Justin's cleanup patch landed. The diff has a couple ...
5 years, 1 month ago (2015-11-13 20:38:25 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/66565) win_chromium_compile_dbg_ng on ...
5 years, 1 month ago (2015-11-13 21:06:58 UTC) #22
Tom Hudson
danakj@: please review cc/, content/browser/compositor/, msw@: please review chrome/browser/, components/html_viewer/ piman@: please review content/renderer/ dcheng@: ...
5 years, 1 month ago (2015-11-18 16:39:39 UTC) #24
dnicoara
ui/ozone lgtm
5 years, 1 month ago (2015-11-18 16:58:17 UTC) #26
Justin Novosad
third_party/WebKit lgtm
5 years, 1 month ago (2015-11-18 17:05:24 UTC) #27
Lei Zhang
printing/ lgtm https://codereview.chromium.org/1432443004/diff/80001/printing/metafile_skia_wrapper.cc File printing/metafile_skia_wrapper.cc (right): https://codereview.chromium.org/1432443004/diff/80001/printing/metafile_skia_wrapper.cc#newcode10 printing/metafile_skia_wrapper.cc:10: class SkCanvas; Is this even needed?
5 years, 1 month ago (2015-11-18 17:36:36 UTC) #28
Tom Hudson
https://codereview.chromium.org/1432443004/diff/80001/printing/metafile_skia_wrapper.cc File printing/metafile_skia_wrapper.cc (right): https://codereview.chromium.org/1432443004/diff/80001/printing/metafile_skia_wrapper.cc#newcode10 printing/metafile_skia_wrapper.cc:10: class SkCanvas; On 2015/11/18 17:36:36, Lei Zhang wrote: > ...
5 years, 1 month ago (2015-11-18 17:50:56 UTC) #30
dcheng
https://codereview.chromium.org/1432443004/diff/80001/ui/base/clipboard/clipboard_win.cc File ui/base/clipboard/clipboard_win.cc (right): https://codereview.chromium.org/1432443004/diff/80001/ui/base/clipboard/clipboard_win.cc#newcode176 ui/base/clipboard/clipboard_win.cc:176: void MakeBitmapOpaque(SkPixmap pixmap) { I can't tell from the ...
5 years, 1 month ago (2015-11-18 18:10:35 UTC) #31
piman
content/ lgtm.
5 years, 1 month ago (2015-11-18 18:33:12 UTC) #32
piman
content/ lgtm.
5 years, 1 month ago (2015-11-18 18:33:12 UTC) #33
msw
chrome/browser/ui and components/html_viewer/ lgtm
5 years, 1 month ago (2015-11-18 19:44:29 UTC) #34
sky
LGTM
5 years, 1 month ago (2015-11-18 21:03:41 UTC) #35
Tom Hudson
https://codereview.chromium.org/1432443004/diff/80001/ui/base/clipboard/clipboard_win.cc File ui/base/clipboard/clipboard_win.cc (right): https://codereview.chromium.org/1432443004/diff/80001/ui/base/clipboard/clipboard_win.cc#newcode176 ui/base/clipboard/clipboard_win.cc:176: void MakeBitmapOpaque(SkPixmap pixmap) { On 2015/11/18 18:10:35, dcheng wrote: ...
5 years, 1 month ago (2015-11-20 15:20:48 UTC) #37
dcheng
https://codereview.chromium.org/1432443004/diff/80001/ui/base/clipboard/clipboard_win.cc File ui/base/clipboard/clipboard_win.cc (right): https://codereview.chromium.org/1432443004/diff/80001/ui/base/clipboard/clipboard_win.cc#newcode176 ui/base/clipboard/clipboard_win.cc:176: void MakeBitmapOpaque(SkPixmap pixmap) { On 2015/11/20 at 15:20:48, Tom ...
5 years, 1 month ago (2015-11-20 19:25:27 UTC) #38
Tom Hudson
https://codereview.chromium.org/1432443004/diff/80001/ui/base/clipboard/clipboard_win.cc File ui/base/clipboard/clipboard_win.cc (right): https://codereview.chromium.org/1432443004/diff/80001/ui/base/clipboard/clipboard_win.cc#newcode176 ui/base/clipboard/clipboard_win.cc:176: void MakeBitmapOpaque(SkPixmap pixmap) { On 2015/11/20 19:25:27, dcheng wrote: ...
5 years, 1 month ago (2015-11-20 20:09:10 UTC) #39
dcheng
ui/base/clipboard lgtm
5 years, 1 month ago (2015-11-20 20:12:26 UTC) #40
tomhudson
danakj@: ping? You're the only unlimited reviewer shared between cc/ and content/browser/compositor/, and the changes ...
5 years ago (2015-11-23 15:05:43 UTC) #41
piman
On 2015/11/23 15:05:43, tomhudson wrote: > danakj@: ping? You're the only unlimited reviewer shared between ...
5 years ago (2015-11-23 19:35:49 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1432443004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1432443004/100001
5 years ago (2015-11-23 20:05:46 UTC) #45
danakj
On 2015/11/23 15:05:43, tomhudson wrote: > danakj@: ping? You're the only unlimited reviewer shared between ...
5 years ago (2015-11-23 21:11:39 UTC) #46
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years ago (2015-11-23 21:53:02 UTC) #47
commit-bot: I haz the power
5 years ago (2015-11-23 21:54:04 UTC) #48
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/15223e977e59eafbb2476c7224641adc1589d860
Cr-Commit-Position: refs/heads/master@{#361196}

Powered by Google App Engine
This is Rietveld 408576698