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

Issue 518983002: The key for SkBitmapCache can now be genID+SkIRect (Closed)

Created:
6 years, 3 months ago by Rémi Piotaix
Modified:
6 years, 3 months ago
Reviewers:
Justin Novosad, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

The key for SkBitmapCache can now be genID+SkIRect BUG=skia:2894 Committed: https://skia.googlesource.com/skia/+/42b0dfeb29e993b7fd247dcecff705d3dd4cf191

Patch Set 1 #

Patch Set 2 : add test #

Patch Set 3 : Test added #

Patch Set 4 : Add checks on SkBitmapCache::Add #

Total comments: 2

Patch Set 5 : Forgot to set cachedBitmap immutable in test #

Patch Set 6 : Canonicalize subset in SkBitmapCache::Add (and test) #

Total comments: 2

Patch Set 7 : Check on Add verifying width+offset #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -11 lines) Patch
M src/core/SkBitmapCache.h View 1 2 3 6 2 chunks +18 lines, -4 lines 0 comments Download
M src/core/SkBitmapCache.cpp View 1 2 3 4 5 6 3 chunks +25 lines, -7 lines 0 comments Download
M tests/SkResourceCacheTest.cpp View 1 2 3 4 5 6 1 chunk +35 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (2 generated)
Rémi Piotaix
PTAL
6 years, 3 months ago (2014-08-29 19:11:06 UTC) #2
Justin Novosad
Reitveld chose the most confusing way to highlight the changes. LOL A test would be ...
6 years, 3 months ago (2014-08-29 20:07:44 UTC) #3
reed1
API looks good. Please augment the unitests to exercise this.
6 years, 3 months ago (2014-09-02 14:21:12 UTC) #4
reed1
On 2014/09/02 14:21:12, reed1 wrote: > <span id="abbrex-spnAbbr_14537" class="abbrex-Abbr abbrex-Abbr_API abbrex-AbbrUnknown abbrex-AbbrUnknownVisible">API</span> looks good. Please ...
6 years, 3 months ago (2014-09-02 14:21:37 UTC) #5
Rémi Piotaix
On 2014/09/02 14:21:37, reed1 wrote: > On 2014/09/02 14:21:12, reed1 wrote: > > <span id="abbrex-spnAbbr_14537" ...
6 years, 3 months ago (2014-09-02 15:15:01 UTC) #6
reed1
What do we think should be done with ambiguous arguments? e.g. - what if the ...
6 years, 3 months ago (2014-09-02 15:23:09 UTC) #7
Rémi Piotaix
On 2014/09/02 15:23:09, reed1 wrote: > What do we think should be done with ambiguous ...
6 years, 3 months ago (2014-09-02 15:33:43 UTC) #8
Justin Novosad
On 2014/09/02 15:33:43, Rémi Piotaix wrote: > On 2014/09/02 15:23:09, reed1 wrote: > > What ...
6 years, 3 months ago (2014-09-02 17:02:41 UTC) #9
Rémi Piotaix
On 2014/09/02 17:02:41, junov wrote: > On 2014/09/02 15:33:43, Rémi Piotaix wrote: > > On ...
6 years, 3 months ago (2014-09-02 18:08:57 UTC) #10
reed1
I think we can formalize the idea of "make a subset rect canonical or fail". ...
6 years, 3 months ago (2014-09-02 18:13:45 UTC) #11
Rémi Piotaix
On 2014/09/02 18:13:45, reed1 wrote: > I think we can formalize the idea of "make ...
6 years, 3 months ago (2014-09-02 19:20:58 UTC) #12
Justin Novosad
On 2014/09/02 19:20:58, Rémi Piotaix wrote: > > I Implemented a solution where, if the ...
6 years, 3 months ago (2014-09-02 19:30:55 UTC) #13
reed1
Find -- good point that we can't verify that the subset intersects the src. That ...
6 years, 3 months ago (2014-09-02 19:57:47 UTC) #14
Rémi Piotaix
On 2014/09/02 19:57:47, reed1 wrote: > Find -- good point that we can't verify that ...
6 years, 3 months ago (2014-09-02 20:27:01 UTC) #15
reed1
https://codereview.chromium.org/518983002/diff/100001/src/core/SkBitmapCache.cpp File src/core/SkBitmapCache.cpp (right): https://codereview.chromium.org/518983002/diff/100001/src/core/SkBitmapCache.cpp#newcode119 src/core/SkBitmapCache.cpp:119: // We need to take only the width and ...
6 years, 3 months ago (2014-09-02 20:38:45 UTC) #16
Rémi Piotaix
https://codereview.chromium.org/518983002/diff/100001/src/core/SkBitmapCache.cpp File src/core/SkBitmapCache.cpp (right): https://codereview.chromium.org/518983002/diff/100001/src/core/SkBitmapCache.cpp#newcode119 src/core/SkBitmapCache.cpp:119: // We need to take only the width and ...
6 years, 3 months ago (2014-09-02 20:48:44 UTC) #17
reed1
Ah, I finally get it! Since we don't have the bloody original dimensions, we can't ...
6 years, 3 months ago (2014-09-02 21:09:06 UTC) #18
Rémi Piotaix
On 2014/09/02 21:09:06, reed1 wrote: > Ah, I finally get it! Since we don't have ...
6 years, 3 months ago (2014-09-02 21:16:56 UTC) #19
reed1
On 2014/09/02 21:16:56, Rémi Piotaix wrote: > On 2014/09/02 21:09:06, reed1 wrote: > > Ah, ...
6 years, 3 months ago (2014-09-02 21:21:06 UTC) #20
Rémi Piotaix
On 2014/09/02 21:21:06, reed1 wrote: > On 2014/09/02 21:16:56, Rémi Piotaix wrote: > > On ...
6 years, 3 months ago (2014-09-03 13:53:10 UTC) #21
reed1
lgtm
6 years, 3 months ago (2014-09-03 18:24:56 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/piotaixr@chromium.org/518983002/120001
6 years, 3 months ago (2014-09-03 18:26:25 UTC) #24
commit-bot: I haz the power
6 years, 3 months ago (2014-09-03 18:33:18 UTC) #25
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as 42b0dfeb29e993b7fd247dcecff705d3dd4cf191

Powered by Google App Engine
This is Rietveld 408576698