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

Issue 2340813006: accessBitmap is no longer called/needed (Closed)

Created:
4 years, 3 months ago by reed1
Modified:
4 years, 3 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Subclasses of SkDevice that overrode onAccessBitmap can remove that code -- it is not being called. One caller on platform_skia was calling it (incidentally), but they can call accessPixels() instead for the same result. BUG=647756 Committed: https://crrev.com/ff7e85cb9b649940e25ef66cbf84910867551f75 Cr-Commit-Position: refs/heads/master@{#419446}

Patch Set 1 #

Patch Set 2 #

Total comments: 2

Patch Set 3 : remove unneeded overload in win #

Patch Set 4 : update unittest #

Total comments: 4

Patch Set 5 : peek at entire pixels #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -22 lines) Patch
M skia/config/SkUserConfig.h View 1 chunk +0 lines, -4 lines 0 comments Download
M skia/ext/bitmap_platform_device_skia.cc View 1 1 chunk +2 lines, -2 lines 2 comments Download
M skia/ext/bitmap_platform_device_win.h View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M skia/ext/bitmap_platform_device_win.cc View 1 2 1 chunk +0 lines, -8 lines 0 comments Download
M skia/ext/platform_canvas_unittest.cc View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 34 (20 generated)
reed1
4 years, 3 months ago (2016-09-16 18:45:09 UTC) #2
tomhudson
Need to do something about bitmap_platform_device_win.cc's onAccessBitmap() https://codereview.chromium.org/2340813006/diff/20001/skia/ext/bitmap_platform_device_skia.cc File skia/ext/bitmap_platform_device_skia.cc (right): https://codereview.chromium.org/2340813006/diff/20001/skia/ext/bitmap_platform_device_skia.cc#newcode57 skia/ext/bitmap_platform_device_skia.cc:57: return accessPixels(&pixmap) ...
4 years, 3 months ago (2016-09-16 19:37:31 UTC) #8
reed1
https://codereview.chromium.org/2340813006/diff/20001/skia/ext/bitmap_platform_device_skia.cc File skia/ext/bitmap_platform_device_skia.cc (right): https://codereview.chromium.org/2340813006/diff/20001/skia/ext/bitmap_platform_device_skia.cc#newcode57 skia/ext/bitmap_platform_device_skia.cc:57: return accessPixels(&pixmap) ? pixmap.writable_addr() : nullptr; On 2016/09/16 19:37:31, ...
4 years, 3 months ago (2016-09-16 20:29:03 UTC) #15
reed1
ptal
4 years, 3 months ago (2016-09-17 11:40:25 UTC) #18
f(malita)
https://codereview.chromium.org/2340813006/diff/60001/skia/ext/platform_canvas_unittest.cc File skia/ext/platform_canvas_unittest.cc (right): https://codereview.chromium.org/2340813006/diff/60001/skia/ext/platform_canvas_unittest.cc#newcode107 skia/ext/platform_canvas_unittest.cc:107: if (!canvas.readPixels(&bitmap, x, y)) { nit: can readPixels ever ...
4 years, 3 months ago (2016-09-17 14:21:23 UTC) #19
reed1
https://codereview.chromium.org/2340813006/diff/60001/skia/ext/platform_canvas_unittest.cc File skia/ext/platform_canvas_unittest.cc (right): https://codereview.chromium.org/2340813006/diff/60001/skia/ext/platform_canvas_unittest.cc#newcode107 skia/ext/platform_canvas_unittest.cc:107: if (!canvas.readPixels(&bitmap, x, y)) { On 2016/09/17 14:21:22, f(malita) ...
4 years, 3 months ago (2016-09-19 00:11:52 UTC) #20
reed1
4 years, 3 months ago (2016-09-19 12:29:10 UTC) #21
tomhudson
LGTM https://codereview.chromium.org/2340813006/diff/80001/skia/ext/bitmap_platform_device_skia.cc File skia/ext/bitmap_platform_device_skia.cc (right): https://codereview.chromium.org/2340813006/diff/80001/skia/ext/bitmap_platform_device_skia.cc#newcode55 skia/ext/bitmap_platform_device_skia.cc:55: // pixels? Maybe this won't be called at ...
4 years, 3 months ago (2016-09-19 13:02:30 UTC) #24
f(malita)
lgtm
4 years, 3 months ago (2016-09-19 13:04:11 UTC) #25
reed1
https://codereview.chromium.org/2340813006/diff/80001/skia/ext/bitmap_platform_device_skia.cc File skia/ext/bitmap_platform_device_skia.cc (right): https://codereview.chromium.org/2340813006/diff/80001/skia/ext/bitmap_platform_device_skia.cc#newcode55 skia/ext/bitmap_platform_device_skia.cc:55: // pixels? Maybe this won't be called at all. ...
4 years, 3 months ago (2016-09-19 13:06:58 UTC) #26
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/2340813006/80001
4 years, 3 months ago (2016-09-19 13:07:25 UTC) #29
tomhudson
On 2016/09/19 13:06:58, reed1 wrote: > https://codereview.chromium.org/2340813006/diff/80001/skia/ext/bitmap_platform_device_skia.cc > File skia/ext/bitmap_platform_device_skia.cc (right): > > https://codereview.chromium.org/2340813006/diff/80001/skia/ext/bitmap_platform_device_skia.cc#newcode55 > ...
4 years, 3 months ago (2016-09-19 13:13:47 UTC) #30
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 3 months ago (2016-09-19 13:40:27 UTC) #32
commit-bot: I haz the power
4 years, 3 months ago (2016-09-19 13:42:36 UTC) #34
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/ff7e85cb9b649940e25ef66cbf84910867551f75
Cr-Commit-Position: refs/heads/master@{#419446}

Powered by Google App Engine
This is Rietveld 408576698