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

Issue 23206002: skia: Added chrome implementation of SkDiscardableMemory. (Closed)

Created:
7 years, 4 months ago by ernstm
Modified:
7 years, 4 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

skia: Added chrome implementation of SkDiscardableMemory. The implementation resembles that of WebDiscardableMemory. The skia part of this patch is here: https://codereview.chromium.org/22956004 R=reed@google.com, scroggo@google.com, hclam@chromium.org, nduca@chromium.org, jamesr@chromium.org BUG=229120 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=219386

Patch Set 1 #

Total comments: 4

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

Patch Set 3 : Made factory function a method. #

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

Total comments: 3

Patch Set 5 : Added OVERRIDE keywords. #

Patch Set 6 : Added destructor (required by clang). #

Patch Set 7 : Removed OVERRIDE keyword from destructor. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -0 lines) Patch
A skia/ext/SkDiscardableMemory_chrome.h View 1 2 3 4 5 6 1 chunk +33 lines, -0 lines 0 comments Download
A skia/ext/SkDiscardableMemory_chrome.cc View 1 2 3 4 5 1 chunk +49 lines, -0 lines 0 comments Download
M skia/skia_chrome.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
ernstm
7 years, 4 months ago (2013-08-14 18:43:17 UTC) #1
nduca
some nits, minor though https://codereview.chromium.org/23206002/diff/1/skia/ext/sk_discardable_memory_chrome.h File skia/ext/sk_discardable_memory_chrome.h (right): https://codereview.chromium.org/23206002/diff/1/skia/ext/sk_discardable_memory_chrome.h#newcode16 skia/ext/sk_discardable_memory_chrome.h:16: class SK_API SkDiscardableMemoryChrome : public ...
7 years, 4 months ago (2013-08-14 22:53:37 UTC) #2
scroggo
https://codereview.chromium.org/23206002/diff/1/skia/ext/sk_discardable_memory_chrome.h File skia/ext/sk_discardable_memory_chrome.h (right): https://codereview.chromium.org/23206002/diff/1/skia/ext/sk_discardable_memory_chrome.h#newcode18 skia/ext/sk_discardable_memory_chrome.h:18: SkDiscardableMemoryChrome(); It looks like someone could create an SkDiscardableMemoryChrome ...
7 years, 4 months ago (2013-08-15 14:15:24 UTC) #3
ernstm
Replaced SkDiscardableMemoryFactory by sk_create_discardable_memory function (following the embedding pattern of SkThread). https://codereview.chromium.org/23206002/diff/1/skia/ext/sk_discardable_memory_chrome.h File skia/ext/sk_discardable_memory_chrome.h (right): ...
7 years, 4 months ago (2013-08-15 20:30:11 UTC) #4
ernstm
Made factory function a method.
7 years, 4 months ago (2013-08-15 21:12:52 UTC) #5
Ian Vollick
https://codereview.chromium.org/23206002/diff/16001/skia/ext/SkDiscardableMemory_chrome.cc File skia/ext/SkDiscardableMemory_chrome.cc (right): https://codereview.chromium.org/23206002/diff/16001/skia/ext/SkDiscardableMemory_chrome.cc#newcode18 skia/ext/SkDiscardableMemory_chrome.cc:18: return false; Do you really want to do this ...
7 years, 4 months ago (2013-08-16 11:36:30 UTC) #6
ernstm
On 2013/08/16 11:36:30, vollick wrote: > https://codereview.chromium.org/23206002/diff/16001/skia/ext/SkDiscardableMemory_chrome.cc > File skia/ext/SkDiscardableMemory_chrome.cc (right): > > https://codereview.chromium.org/23206002/diff/16001/skia/ext/SkDiscardableMemory_chrome.cc#newcode18 > ...
7 years, 4 months ago (2013-08-16 17:01:22 UTC) #7
ernstm
Can we move forward with this patch? We already got green light for the interface ...
7 years, 4 months ago (2013-08-16 20:59:54 UTC) #8
Ian Vollick
On 2013/08/16 20:59:54, Manfred Ernst wrote: > Can we move forward with this patch? We ...
7 years, 4 months ago (2013-08-17 00:22:17 UTC) #9
nduca
lgtm3
7 years, 4 months ago (2013-08-17 00:24:38 UTC) #10
ernstm
On 2013/08/17 00:24:38, nduca (ooo untill 8-26) wrote: > lgtm3 Mike, Leon, I think we ...
7 years, 4 months ago (2013-08-19 18:33:14 UTC) #11
scroggo
lgtm, pending submit of skia change.
7 years, 4 months ago (2013-08-19 18:34:29 UTC) #12
reed1
https://codereview.chromium.org/23206002/diff/16001/skia/ext/SkDiscardableMemory_chrome.h File skia/ext/SkDiscardableMemory_chrome.h (right): https://codereview.chromium.org/23206002/diff/16001/skia/ext/SkDiscardableMemory_chrome.h#newcode24 skia/ext/SkDiscardableMemory_chrome.h:24: bool lock(); Do you not say virtual and/or override ...
7 years, 4 months ago (2013-08-20 15:23:47 UTC) #13
ernstm
https://codereview.chromium.org/23206002/diff/16001/skia/ext/SkDiscardableMemory_chrome.h File skia/ext/SkDiscardableMemory_chrome.h (right): https://codereview.chromium.org/23206002/diff/16001/skia/ext/SkDiscardableMemory_chrome.h#newcode24 skia/ext/SkDiscardableMemory_chrome.h:24: bool lock(); On 2013/08/20 15:23:47, reed1 wrote: > Do ...
7 years, 4 months ago (2013-08-21 23:00:22 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ernstm@chromium.org/23206002/29001
7 years, 4 months ago (2013-08-21 23:02:22 UTC) #15
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 4 months ago (2013-08-21 23:32:12 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ernstm@chromium.org/23206002/4002
7 years, 4 months ago (2013-08-23 16:40:40 UTC) #17
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 4 months ago (2013-08-23 17:28:49 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ernstm@chromium.org/23206002/52001
7 years, 4 months ago (2013-08-23 20:44:32 UTC) #19
commit-bot: I haz the power
7 years, 4 months ago (2013-08-24 00:03:51 UTC) #20
Message was sent while issue was closed.
Change committed as 219386

Powered by Google App Engine
This is Rietveld 408576698