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

Issue 1813483002: ImagePixelLocker now manually allocates SkPixmap (Closed)

Created:
4 years, 9 months ago by robertphillips
Modified:
4 years, 9 months ago
Reviewers:
f(malita)
CC:
chromium-reviews, krit, pdr+graphicswatchlist_chromium.org, drott+blinkwatch_chromium.org, blink-reviews-platform-graphics_chromium.org, dshwang, jbroman, Justin Novosad, Rik, Stephen Chennney, blink-reviews, f(malita), danakj+watch_chromium.org, kinuko+watch, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ImagePixelLocker now manually allocates SkPixmap Skia is retracting the SkAutoPixmapStorage class. These are the only two uses of it in Chrome. Committed: https://crrev.com/a7c239cc4e4100be87bc5b385e2bd41364289014 Cr-Commit-Position: refs/heads/master@{#381700}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Switch to using SkAutoMalloc #

Total comments: 4

Patch Set 3 : Fix second instance #

Patch Set 4 : clean up #

Patch Set 5 : update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -12 lines) Patch
M third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp View 1 2 3 3 chunks +8 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/skia/ImagePixelLocker.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/skia/ImagePixelLocker.cpp View 1 2 1 chunk +16 lines, -7 lines 0 comments Download

Messages

Total messages: 20 (8 generated)
robertphillips
4 years, 9 months ago (2016-03-16 18:49:11 UTC) #3
f(malita)
https://codereview.chromium.org/1813483002/diff/1/third_party/WebKit/Source/platform/graphics/skia/ImagePixelLocker.cpp File third_party/WebKit/Source/platform/graphics/skia/ImagePixelLocker.cpp (right): https://codereview.chromium.org/1813483002/diff/1/third_party/WebKit/Source/platform/graphics/skia/ImagePixelLocker.cpp#newcode54 third_party/WebKit/Source/platform/graphics/skia/ImagePixelLocker.cpp:54: void* pixels = sk_malloc_flags(size, 0); Would it make sense ...
4 years, 9 months ago (2016-03-16 19:28:29 UTC) #4
robertphillips
https://codereview.chromium.org/1813483002/diff/1/third_party/WebKit/Source/platform/graphics/skia/ImagePixelLocker.cpp File third_party/WebKit/Source/platform/graphics/skia/ImagePixelLocker.cpp (right): https://codereview.chromium.org/1813483002/diff/1/third_party/WebKit/Source/platform/graphics/skia/ImagePixelLocker.cpp#newcode54 third_party/WebKit/Source/platform/graphics/skia/ImagePixelLocker.cpp:54: void* pixels = sk_malloc_flags(size, 0); On 2016/03/16 19:28:29, f(malita) ...
4 years, 9 months ago (2016-03-16 19:59:10 UTC) #5
f(malita)
lgtm https://codereview.chromium.org/1813483002/diff/20001/third_party/WebKit/Source/platform/graphics/skia/ImagePixelLocker.cpp File third_party/WebKit/Source/platform/graphics/skia/ImagePixelLocker.cpp (right): https://codereview.chromium.org/1813483002/diff/20001/third_party/WebKit/Source/platform/graphics/skia/ImagePixelLocker.cpp#newcode52 third_party/WebKit/Source/platform/graphics/skia/ImagePixelLocker.cpp:52: } nit: no braces for single-line/statement conditional (Blink ...
4 years, 9 months ago (2016-03-16 20:12:36 UTC) #6
robertphillips
PTAL - I found a second instance. https://codereview.chromium.org/1813483002/diff/20001/third_party/WebKit/Source/platform/graphics/skia/ImagePixelLocker.cpp File third_party/WebKit/Source/platform/graphics/skia/ImagePixelLocker.cpp (right): https://codereview.chromium.org/1813483002/diff/20001/third_party/WebKit/Source/platform/graphics/skia/ImagePixelLocker.cpp#newcode59 third_party/WebKit/Source/platform/graphics/skia/ImagePixelLocker.cpp:59: m_pixelStorage.free(); On ...
4 years, 9 months ago (2016-03-16 20:30:50 UTC) #8
robertphillips
https://codereview.chromium.org/1813483002/diff/20001/third_party/WebKit/Source/platform/graphics/skia/ImagePixelLocker.cpp File third_party/WebKit/Source/platform/graphics/skia/ImagePixelLocker.cpp (right): https://codereview.chromium.org/1813483002/diff/20001/third_party/WebKit/Source/platform/graphics/skia/ImagePixelLocker.cpp#newcode52 third_party/WebKit/Source/platform/graphics/skia/ImagePixelLocker.cpp:52: } On 2016/03/16 20:12:36, f(malita) wrote: > nit: no ...
4 years, 9 months ago (2016-03-16 20:31:50 UTC) #9
f(malita)
lgtm++
4 years, 9 months ago (2016-03-16 20:33:13 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1813483002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1813483002/80001
4 years, 9 months ago (2016-03-16 20:35:25 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-16 22:53:20 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1813483002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1813483002/80001
4 years, 9 months ago (2016-03-17 13:18:09 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 9 months ago (2016-03-17 13:22:25 UTC) #18
commit-bot: I haz the power
4 years, 9 months ago (2016-03-17 13:24:57 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/a7c239cc4e4100be87bc5b385e2bd41364289014
Cr-Commit-Position: refs/heads/master@{#381700}

Powered by Google App Engine
This is Rietveld 408576698