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

Issue 2812763002: paint: Introduce PaintImage that wraps SkImage in paint calls. (Closed)

Created:
3 years, 8 months ago by vmpstr
Modified:
3 years, 8 months ago
CC:
ajuma+watch_chromium.org, blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, cc-bugs_chromium.org, chromium-reviews, dshwang, drott+blinkwatch_chromium.org, krit, feature-media-reviews_chromium.org, fmalita+watch_chromium.org, Justin Novosad, kinuko+watch, pdr+graphicswatchlist_chromium.org, posciak+watch_chromium.org, rwlbuis, Stephen Chennney
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

paint: Introduce PaintImage that wraps SkImage in paint calls. This patch introduces a PaintImage object that wraps an SkImage for the purposes of paint. It also introduces two states: AnimationType - indicates whether the image is animated (ie this is a single frame of a larger stack of images) CompletionState - indicates whether this image is fully loaded. R=enne@chromium.org, khushalsagar@chromium.org BUG=702386 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2812763002 Cr-Commit-Position: refs/heads/master@{#464643} Committed: https://chromium.googlesource.com/chromium/src/+/94cfa88dd9922d14e7b08544b3b9710fc53ea94c

Patch Set 1 #

Total comments: 5

Patch Set 2 : update #

Patch Set 3 : update #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -32 lines) Patch
M cc/layers/picture_image_layer.cc View 1 chunk +4 lines, -1 line 0 comments Download
M cc/paint/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M cc/paint/paint_canvas.h View 3 chunks +4 lines, -3 lines 0 comments Download
A cc/paint/paint_image.h View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
A cc/paint/paint_image.cc View 1 chunk +17 lines, -0 lines 0 comments Download
M cc/paint/skia_paint_canvas.h View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/paint/skia_paint_canvas.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M cc/test/fake_content_layer_client.cc View 1 chunk +3 lines, -1 line 0 comments Download
M media/renderers/skcanvas_video_renderer.cc View 1 2 2 chunks +10 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/BitmapImage.cpp View 2 chunks +11 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp View 6 chunks +21 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Image.cpp View 4 chunks +13 lines, -3 lines 2 comments Download
M third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp View 2 chunks +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/StaticBitmapImage.cpp View 2 chunks +10 lines, -2 lines 2 comments Download
A third_party/WebKit/Source/platform/graphics/paint/PaintImage.h View 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (13 generated)
vmpstr
Please take a look.
3 years, 8 months ago (2017-04-10 22:38:10 UTC) #5
enne (OOO)
lgtm % khushalsagar
3 years, 8 months ago (2017-04-11 00:39:19 UTC) #6
Khushal
https://codereview.chromium.org/2812763002/diff/1/cc/paint/paint_image.h File cc/paint/paint_image.h (right): https://codereview.chromium.org/2812763002/diff/1/cc/paint/paint_image.h#newcode14 cc/paint/paint_image.h:14: class CC_PAINT_EXPORT PaintImage { Add a TODO for a ...
3 years, 8 months ago (2017-04-11 02:19:46 UTC) #9
vmpstr
https://codereview.chromium.org/2812763002/diff/1/cc/paint/paint_image.h File cc/paint/paint_image.h (right): https://codereview.chromium.org/2812763002/diff/1/cc/paint/paint_image.h#newcode14 cc/paint/paint_image.h:14: class CC_PAINT_EXPORT PaintImage { On 2017/04/11 02:19:46, Khushal wrote: ...
3 years, 8 months ago (2017-04-11 18:58:34 UTC) #10
Khushal
lgtm. https://codereview.chromium.org/2812763002/diff/1/cc/paint/paint_image.h File cc/paint/paint_image.h (right): https://codereview.chromium.org/2812763002/diff/1/cc/paint/paint_image.h#newcode17 cc/paint/paint_image.h:17: enum class AnimationType { UNKNOWN, ANIMATED, STATIC }; ...
3 years, 8 months ago (2017-04-11 20:55:01 UTC) #11
vmpstr
+pdr for webkit +dalecurtis for media Please take a look.
3 years, 8 months ago (2017-04-11 21:43:52 UTC) #13
pdr.
https://codereview.chromium.org/2812763002/diff/40001/third_party/WebKit/Source/platform/graphics/Image.cpp File third_party/WebKit/Source/platform/graphics/Image.cpp (right): https://codereview.chromium.org/2812763002/diff/40001/third_party/WebKit/Source/platform/graphics/Image.cpp#newcode252 third_party/WebKit/Source/platform/graphics/Image.cpp:252: PaintImage(std::move(image), animation_type, completion_state), 0, 0, It looks like PaintImage ...
3 years, 8 months ago (2017-04-12 17:37:05 UTC) #14
DaleCurtis
media/ lgtm
3 years, 8 months ago (2017-04-12 18:27:45 UTC) #15
vmpstr
https://codereview.chromium.org/2812763002/diff/40001/third_party/WebKit/Source/platform/graphics/Image.cpp File third_party/WebKit/Source/platform/graphics/Image.cpp (right): https://codereview.chromium.org/2812763002/diff/40001/third_party/WebKit/Source/platform/graphics/Image.cpp#newcode252 third_party/WebKit/Source/platform/graphics/Image.cpp:252: PaintImage(std::move(image), animation_type, completion_state), 0, 0, On 2017/04/12 17:37:05, pdr. ...
3 years, 8 months ago (2017-04-12 18:58:44 UTC) #16
pdr.
On 2017/04/12 at 18:58:44, vmpstr wrote: > https://codereview.chromium.org/2812763002/diff/40001/third_party/WebKit/Source/platform/graphics/Image.cpp > File third_party/WebKit/Source/platform/graphics/Image.cpp (right): > > https://codereview.chromium.org/2812763002/diff/40001/third_party/WebKit/Source/platform/graphics/Image.cpp#newcode252 ...
3 years, 8 months ago (2017-04-12 21:29:38 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2812763002/40001
3 years, 8 months ago (2017-04-12 22:23:54 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/361137)
3 years, 8 months ago (2017-04-13 00:08:01 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2812763002/40001
3 years, 8 months ago (2017-04-13 23:03:19 UTC) #24
commit-bot: I haz the power
3 years, 8 months ago (2017-04-14 01:20:35 UTC) #27
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/94cfa88dd9922d14e7b08544b3b9...

Powered by Google App Engine
This is Rietveld 408576698