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

Issue 201213002: Remove uses of SkBitmap::Config (deprecated) from core/ and platform/. (Closed)

Created:
6 years, 9 months ago by jbroman
Modified:
6 years, 9 months ago
Reviewers:
reed, Stephen Chennney, f(malita), pdr., reed1
CC:
blink-reviews, jamesr, krit, dsinclair, danakj, Rik, Stephen Chennney, pdr., rwlbuis, Tom Hudson, reed2
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Remove uses of SkBitmap::Config (deprecated) from core/ and platform/. These should be replaced by SkColorType and SkImageInfo. In many cases, shortcut methods like SkBitmap::allocN32Pixels can be used. BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169464

Patch Set 1 #

Total comments: 10

Patch Set 2 : review comments #

Total comments: 6

Patch Set 3 : schenney comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -47 lines) Patch
M Source/core/frame/ImageBitmapTest.cpp View 1 1 chunk +2 lines, -4 lines 0 comments Download
M Source/platform/DragImage.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M Source/platform/graphics/DeferredImageDecoderTest.cpp View 1 5 chunks +5 lines, -10 lines 0 comments Download
M Source/platform/graphics/GraphicsContext.cpp View 1 2 4 chunks +16 lines, -13 lines 0 comments Download
M Source/platform/graphics/ImageDecodingStoreTest.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/platform/graphics/ImageFrameGeneratorTest.cpp View 1 2 chunks +5 lines, -3 lines 0 comments Download
M Source/platform/graphics/UnacceleratedImageBufferSurface.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/platform/graphics/UnacceleratedImageBufferSurface.cpp View 1 2 1 chunk +4 lines, -8 lines 0 comments Download
M Source/platform/graphics/skia/GaneshUtils.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/image-decoders/ImageFrame.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
jbroman
My understanding is that Skia consumers are intended to be moving away from SkBitmap::Config (if ...
6 years, 9 months ago (2014-03-15 23:48:02 UTC) #1
Stephen Chennney
Added reed@ to be sure we're doing this the right way.
6 years, 9 months ago (2014-03-17 12:25:37 UTC) #2
reed1
https://codereview.chromium.org/201213002/diff/1/Source/platform/graphics/DeferredImageDecoderTest.cpp File Source/platform/graphics/DeferredImageDecoderTest.cpp (right): https://codereview.chromium.org/201213002/diff/1/Source/platform/graphics/DeferredImageDecoderTest.cpp#newcode66 Source/platform/graphics/DeferredImageDecoderTest.cpp:66: return new SkCanvas(bitmap); There is an even nicer way ...
6 years, 9 months ago (2014-03-17 13:25:17 UTC) #3
Stephen Chennney
I'm happy with the overall direction. When addressing Mike's comments, please make sure that the ...
6 years, 9 months ago (2014-03-17 14:57:34 UTC) #4
jbroman
Added explicit handling for the allocation-failure case in several places (note that several of these ...
6 years, 9 months ago (2014-03-17 16:46:37 UTC) #5
reed1
On 2014/03/17 16:46:37, jbroman wrote: > Added explicit handling for the allocation-failure case in several ...
6 years, 9 months ago (2014-03-17 17:35:04 UTC) #6
reed1
lgtm https://codereview.chromium.org/201213002/diff/20001/Source/core/frame/ImageBitmapTest.cpp File Source/core/frame/ImageBitmapTest.cpp (right): https://codereview.chromium.org/201213002/diff/20001/Source/core/frame/ImageBitmapTest.cpp#newcode57 Source/core/frame/ImageBitmapTest.cpp:57: ASSERT_TRUE(m_bitmap.allocN32Pixels(10, 10)); I presume ASSERT_TRUE executes its argument ...
6 years, 9 months ago (2014-03-17 17:36:51 UTC) #7
jbroman
On 2014/03/17 17:36:51, reed1 wrote: > lgtm > > https://codereview.chromium.org/201213002/diff/20001/Source/core/frame/ImageBitmapTest.cpp > File Source/core/frame/ImageBitmapTest.cpp (right): > ...
6 years, 9 months ago (2014-03-17 17:41:19 UTC) #8
jbroman
On 2014/03/17 17:41:19, jbroman wrote: > is compiled out in debug builds. or release builds ...
6 years, 9 months ago (2014-03-17 17:46:32 UTC) #9
Stephen Chennney
Apparently I didn't send this yesterday. https://codereview.chromium.org/201213002/diff/20001/Source/platform/graphics/GraphicsContext.cpp File Source/platform/graphics/GraphicsContext.cpp (right): https://codereview.chromium.org/201213002/diff/20001/Source/platform/graphics/GraphicsContext.cpp#newcode783 Source/platform/graphics/GraphicsContext.cpp:783: misspellBitmap[index]->allocN32Pixels(rowPixels, colPixels); On ...
6 years, 9 months ago (2014-03-18 12:47:56 UTC) #10
jbroman
https://codereview.chromium.org/201213002/diff/20001/Source/platform/graphics/GraphicsContext.cpp File Source/platform/graphics/GraphicsContext.cpp (right): https://codereview.chromium.org/201213002/diff/20001/Source/platform/graphics/GraphicsContext.cpp#newcode783 Source/platform/graphics/GraphicsContext.cpp:783: misspellBitmap[index]->allocN32Pixels(rowPixels, colPixels); On 2014/03/18 12:47:57, Stephen Chenney wrote: > ...
6 years, 9 months ago (2014-03-18 13:44:52 UTC) #11
Stephen Chennney
Great. LGTM.
6 years, 9 months ago (2014-03-18 14:15:58 UTC) #12
jbroman
The CQ bit was checked by jbroman@chromium.org
6 years, 9 months ago (2014-03-18 14:20:11 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbroman@chromium.org/201213002/40001
6 years, 9 months ago (2014-03-18 14:20:15 UTC) #14
commit-bot: I haz the power
6 years, 9 months ago (2014-03-18 19:14:12 UTC) #15
Message was sent while issue was closed.
Change committed as 169464

Powered by Google App Engine
This is Rietveld 408576698