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

Issue 22956004: skia: Added SkDiscardableMemory interface. (Closed)

Created:
7 years, 4 months ago by ernstm
Modified:
7 years, 4 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

skia: Added SkDiscardableMemory interface. Chrome's implementation of SkDiscardableMemory is provided here: https://codereview.chromium.org/23206002. SkDiscardableMemory is intended to be used for image caching. R=reed@google.com, scroggo@google.com, hclam@chromium.org, jamesr@chromium.org BUG=229120

Patch Set 1 #

Total comments: 4

Patch Set 2 : Replace factory class by factory function. #

Total comments: 2

Patch Set 3 : Made factory function a method. Added dummy imlementation. #

Patch Set 4 : Added missing cpp file. #

Total comments: 1

Patch Set 5 : Capitalized name of static factory method. #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -5 lines) Patch
M gyp/ports.gyp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A src/core/SkDiscardableMemory.h View 1 2 3 4 1 chunk +54 lines, -0 lines 0 comments Download
A + src/ports/SkDiscardableMemory_none.cpp View 1 2 3 4 2 chunks +4 lines, -5 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
ernstm
This is an inital version of a SkDiscardableMemory interface for Skia. It resembles the WebDiscardableMemory ...
7 years, 4 months ago (2013-08-14 18:42:11 UTC) #1
nduca
+vollick who may have suggestions/ideas
7 years, 4 months ago (2013-08-14 22:48:11 UTC) #2
scroggo
https://codereview.chromium.org/22956004/diff/1/include/core/SkGraphics.h File include/core/SkGraphics.h (right): https://codereview.chromium.org/22956004/diff/1/include/core/SkGraphics.h#newcode69 include/core/SkGraphics.h:69: static void SetSkDiscardableMemoryFactory( Once SetSkDiscardableMemoryFactory does something, will the ...
7 years, 4 months ago (2013-08-15 14:06:06 UTC) #3
reed1
Not sure this needs to be up at the public SkGraphics.h level. Isn't this a ...
7 years, 4 months ago (2013-08-15 14:49:07 UTC) #4
ernstm
On 2013/08/15 14:49:07, reed1 wrote: > Not sure this needs to be up at the ...
7 years, 4 months ago (2013-08-15 18:33:17 UTC) #5
reed1
On 2013/08/15 18:33:17, Manfred Ernst wrote: > On 2013/08/15 14:49:07, reed1 wrote: > > Not ...
7 years, 4 months ago (2013-08-15 18:35:07 UTC) #6
ernstm
Replaced SkDiscardableMemoryFactory by a factory function sk_create_discardable_memory, that is implemented by Chrome. Removed public SkGraphics ...
7 years, 4 months ago (2013-08-15 20:26:37 UTC) #7
reed1
Lets checkin a dummy .cpp file, so we can test calling this in contexts where ...
7 years, 4 months ago (2013-08-15 20:42:04 UTC) #8
ernstm
Added dummy implementation and made factory function a method. https://codereview.chromium.org/22956004/diff/10001/src/core/SkDiscardableMemory.h File src/core/SkDiscardableMemory.h (right): https://codereview.chromium.org/22956004/diff/10001/src/core/SkDiscardableMemory.h#newcode52 src/core/SkDiscardableMemory.h:52: ...
7 years, 4 months ago (2013-08-15 21:12:32 UTC) #9
reed1
are we missing the .cpp mentioned in the gyp?
7 years, 4 months ago (2013-08-15 21:14:51 UTC) #10
ernstm
On 2013/08/15 21:14:51, reed1 wrote: > are we missing the .cpp mentioned in the gyp? ...
7 years, 4 months ago (2013-08-15 21:17:35 UTC) #11
reed1
lgtm w/ Capitalization request https://codereview.chromium.org/22956004/diff/20001/src/core/SkDiscardableMemory.h File src/core/SkDiscardableMemory.h (right): https://codereview.chromium.org/22956004/diff/20001/src/core/SkDiscardableMemory.h#newcode24 src/core/SkDiscardableMemory.h:24: static SkDiscardableMemory* create(size_t bytes); nit: ...
7 years, 4 months ago (2013-08-15 21:19:05 UTC) #12
ernstm
Capitalized name of static factory method -> Create.
7 years, 4 months ago (2013-08-16 00:06:08 UTC) #13
scroggo
lgtm
7 years, 4 months ago (2013-08-16 00:07:56 UTC) #14
Ian Vollick
On 2013/08/16 00:07:56, scroggo wrote: > lgtm lgtm2, modulo my question on https://codereview.chromium.org/23206002/; if it ...
7 years, 4 months ago (2013-08-16 11:39:20 UTC) #15
reed1
On 2013/08/16 11:39:20, vollick wrote: > On 2013/08/16 00:07:56, scroggo wrote: > > lgtm > ...
7 years, 4 months ago (2013-08-16 13:08:41 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/ernstm@chromium.org/22956004/12002
7 years, 4 months ago (2013-08-16 21:00:55 UTC) #17
commit-bot: I haz the power
Failed to apply patch for gyp/ports.gyp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 4 months ago (2013-08-16 21:01:02 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/ernstm@chromium.org/22956004/35001
7 years, 4 months ago (2013-08-16 22:17:10 UTC) #19
commit-bot: I haz the power
Retried try job too often on Build-Ubuntu12-GCC-x86_64-Release-Trybot for step(s) BuildBench, BuildGm, BuildMost, BuildSkiaLib, BuildTests, BuildTools ...
7 years, 4 months ago (2013-08-16 22:29:31 UTC) #20
ernstm
On 2013/08/16 22:29:31, I haz the power (commit-bot) wrote: > Retried try job too often ...
7 years, 4 months ago (2013-08-16 23:04:30 UTC) #21
scroggo
On 2013/08/16 23:04:30, Manfred Ernst wrote: > On 2013/08/16 22:29:31, I haz the power (commit-bot) ...
7 years, 4 months ago (2013-08-19 14:25:29 UTC) #22
scroggo
Just talked to Ravi, and it turns out this is a known bug in the ...
7 years, 4 months ago (2013-08-19 14:52:02 UTC) #23
scroggo
7 years, 4 months ago (2013-08-19 18:39:24 UTC) #24
On 2013/08/19 14:52:02, scroggo wrote:
> Just talked to Ravi, and it turns out this is a known bug in the commit queue,
> which doesn't work very well with git (and he is looking into fixing). A git
cl
> dcommit should work though. I'll try to submit when the tree is open.

Submitted in https://code.google.com/p/skia/source/detail?r=10797 via git cl
dcommit workaround.

Powered by Google App Engine
This is Rietveld 408576698