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

Issue 1001703003: Take NativeImageSkia out behind the woodshed. (Closed)

Created:
5 years, 9 months ago by Stephen White
Modified:
5 years, 9 months ago
CC:
blink-reviews, dshwang, fs, dcheng, kouhei+svg_chromium.org, rwlbuis, krit, blink-reviews-html_chromium.org, Justin Novosad, danakj, dglazkov+blink, Rik, gavinp+loader_chromium.org, pdr+svgwatchlist_chromium.org, jbroman, Dominik Röttsches, pdr+graphicswatchlist_chromium.org, gyuyoung.kim_webkit.org, Nate Chapin, tyoshino+watch_chromium.org, blink-layers+watch_chromium.org, ed+blinkwatch_opera.com, reed1
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Take NativeImageSkia out behind the woodshed. Since NativeImageSkia is now little more than a wrapper class around SkBitmap, use SkBitmap directly instead. The two convenience functions NativeImageSkia::draw() and NativeImageSkia::drawPattern() have been moved to Image. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191946

Patch Set 1 #

Patch Set 2 : Update to ToT; adjust DeferredImageDecoder and friends #

Patch Set 3 : Fixes #

Patch Set 4 : Fixes #

Patch Set 5 : Fixes #

Patch Set 6 : Fixes #

Patch Set 7 : Fixes #

Patch Set 8 : Fixes #

Patch Set 9 : Fix MSVC warning #

Patch Set 10 : Make bitmapForCurrentFrame() return SkBitmap by value. #

Total comments: 7

Patch Set 11 : Changes per review comments #

Patch Set 12 : Fwd-declare SkBitmap in Image.h #

Patch Set 13 : Switch to skia-style API (return bool instead of SkBitmap) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+319 lines, -471 lines) Patch
M Source/core/clipboard/Pasteboard.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -4 lines 0 comments Download
M Source/core/fetch/ImageResource.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -1 line 0 comments Download
M Source/core/frame/ImageBitmap.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -2 lines 0 comments Download
M Source/core/frame/ImageBitmapTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +14 lines, -12 lines 0 comments Download
M Source/core/html/HTMLCanvasElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/imagebitmap/ImageBitmapFactories.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -4 lines 0 comments Download
M Source/core/svg/graphics/SVGImage.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/graphics/SVGImage.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -4 lines 0 comments Download
M Source/core/svg/graphics/SVGImageForContainer.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/graphics/SVGImageForContainer.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/svg/graphics/filters/SVGFEImage.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -3 lines 0 comments Download
M Source/platform/DragImage.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +4 lines, -5 lines 0 comments Download
M Source/platform/DragImageTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 9 chunks +16 lines, -16 lines 0 comments Download
M Source/platform/blink_platform.gypi View 1 1 chunk +0 lines, -2 lines 0 comments Download
M Source/platform/exported/WebImageSkia.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +7 lines, -12 lines 0 comments Download
M Source/platform/graphics/BitmapImage.h View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +5 lines, -6 lines 0 comments Download
M Source/platform/graphics/BitmapImage.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 10 chunks +52 lines, -31 lines 0 comments Download
M Source/platform/graphics/BitmapImageTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M Source/platform/graphics/BitmapPattern.h View 2 chunks +2 lines, -1 line 0 comments Download
M Source/platform/graphics/BitmapPattern.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -8 lines 0 comments Download
M Source/platform/graphics/BitmapPatternBase.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/platform/graphics/DeferredImageDecoder.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/graphics/DeferredImageDecoder.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +9 lines, -8 lines 0 comments Download
M Source/platform/graphics/DeferredImageDecoderTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 9 chunks +36 lines, -27 lines 0 comments Download
M Source/platform/graphics/FrameData.h View 2 chunks +2 lines, -3 lines 0 comments Download
M Source/platform/graphics/FrameData.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -6 lines 0 comments Download
M Source/platform/graphics/GraphicsContext.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M Source/platform/graphics/GraphicsContextTest.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M Source/platform/graphics/GraphicsLayer.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +5 lines, -7 lines 0 comments Download
M Source/platform/graphics/Image.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +2 lines, -2 lines 0 comments Download
M Source/platform/graphics/Image.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +77 lines, -3 lines 0 comments Download
M Source/platform/graphics/ImageBuffer.cpp View 2 chunks +2 lines, -3 lines 0 comments Download
M Source/platform/graphics/ImageBufferSurface.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/graphics/ImageLayerChromiumTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +8 lines, -10 lines 0 comments Download
M Source/platform/graphics/ImageSource.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -2 lines 0 comments Download
M Source/platform/graphics/ImageSource.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -3 lines 0 comments Download
M Source/platform/graphics/StaticBitmapImage.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M Source/platform/graphics/gpu/WebGLImageConversion.h View 2 chunks +3 lines, -2 lines 0 comments Download
M Source/platform/graphics/gpu/WebGLImageConversion.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +16 lines, -16 lines 0 comments Download
D Source/platform/graphics/skia/NativeImageSkia.h View 1 chunk +0 lines, -96 lines 0 comments Download
D Source/platform/graphics/skia/NativeImageSkia.cpp View 1 chunk +0 lines, -152 lines 0 comments Download
M Source/platform/image-decoders/ImageFrame.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Source/platform/image-decoders/ImageFrame.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/web/DragClientImpl.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M Source/web/WebElement.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -3 lines 0 comments Download
M Source/web/WebImageDecoder.cpp View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
Stephen White
Stephen and/or Florin: PTAL. Thanks!
5 years, 9 months ago (2015-03-14 20:43:41 UTC) #2
f(malita)
Awesome, LGTM! https://codereview.chromium.org/1001703003/diff/180001/Source/platform/DragImageTest.cpp File Source/platform/DragImageTest.cpp (right): https://codereview.chromium.org/1001703003/diff/180001/Source/platform/DragImageTest.cpp#newcode79 Source/platform/DragImageTest.cpp:79: return SkBitmap(); Prolly not worth touching in ...
5 years, 9 months ago (2015-03-15 00:32:45 UTC) #3
Stephen White
Thanks for your review. https://codereview.chromium.org/1001703003/diff/180001/Source/platform/DragImageTest.cpp File Source/platform/DragImageTest.cpp (right): https://codereview.chromium.org/1001703003/diff/180001/Source/platform/DragImageTest.cpp#newcode79 Source/platform/DragImageTest.cpp:79: return SkBitmap(); On 2015/03/15 00:32:45, ...
5 years, 9 months ago (2015-03-15 16:49:31 UTC) #4
jbroman
I like this CL, but suggest seeing what reed@ thinks. When I was going to ...
5 years, 9 months ago (2015-03-15 19:42:16 UTC) #5
f(malita)
On 2015/03/15 19:42:16, jbroman wrote: > I like this CL, but suggest seeing what reed@ ...
5 years, 9 months ago (2015-03-16 03:05:06 UTC) #6
reed1
general lgtm Moving to SkImage will be an even nicer evolution, at least when those ...
5 years, 9 months ago (2015-03-16 14:34:31 UTC) #8
Stephen White
Note that I have another flavour of this change which is more "Skia-like", in progress ...
5 years, 9 months ago (2015-03-16 14:48:05 UTC) #9
Stephen White
schenney@: could you take a look for Source/web? Thanks! Florin: I've uploaded the version with ...
5 years, 9 months ago (2015-03-16 16:56:52 UTC) #10
Stephen Chennney
On 2015/03/16 16:56:52, Stephen White wrote: > schenney@: could you take a look for Source/web? ...
5 years, 9 months ago (2015-03-16 17:01:18 UTC) #11
f(malita)
On 2015/03/16 16:56:52, Stephen White wrote: > Florin: I've uploaded the version with the Skia-style ...
5 years, 9 months ago (2015-03-16 18:01:27 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1001703003/240001
5 years, 9 months ago (2015-03-16 18:42:31 UTC) #15
commit-bot: I haz the power
5 years, 9 months ago (2015-03-16 20:50:33 UTC) #16
Message was sent while issue was closed.
Committed patchset #13 (id:240001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=191946

Powered by Google App Engine
This is Rietveld 408576698