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

Issue 275563005: cleanup GrContext resource cache api (Closed)

Created:
6 years, 7 months ago by bsalomon
Modified:
6 years, 7 months ago
Reviewers:
robertphillips
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

cleanup GrContext resource cache api Committed: http://code.google.com/p/skia/source/detail?r=14669

Patch Set 1 #

Patch Set 2 : fix spacing #

Total comments: 1

Patch Set 3 : improve comment #

Total comments: 6

Patch Set 4 : Address Rob's comments #

Patch Set 5 : Fix use of SK_ATTR_DEPRECATED #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -123 lines) Patch
M bench/benchmain.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M gm/gmmain.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M include/gpu/GrContext.h View 1 2 3 4 9 chunks +80 lines, -57 lines 0 comments Download
M samplecode/SampleApp.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M src/gpu/GrContext.cpp View 1 2 3 21 chunks +47 lines, -48 lines 0 comments Download
M src/gpu/GrTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 chunk +1 line, -1 line 0 comments Download
M tests/ResourceCacheTest.cpp View 2 chunks +7 lines, -5 lines 0 comments Download
M tests/SurfaceTest.cpp View 1 chunk +10 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
bsalomon
https://codereview.chromium.org/275563005/diff/20001/include/gpu/GrContext.h File include/gpu/GrContext.h (right): https://codereview.chromium.org/275563005/diff/20001/include/gpu/GrContext.h#newcode128 include/gpu/GrContext.h:128: void getResourceCacheUsage(int* resourceCount, size_t* resourceBytes) const; It seemed like ...
6 years, 7 months ago (2014-05-08 18:26:45 UTC) #1
robertphillips
lgtm https://codereview.chromium.org/275563005/diff/40001/include/gpu/GrContext.h File include/gpu/GrContext.h (right): https://codereview.chromium.org/275563005/diff/40001/include/gpu/GrContext.h#newcode125 include/gpu/GrContext.h:125: * @param resourceCount If non-null, returns the number ...
6 years, 7 months ago (2014-05-08 19:12:35 UTC) #2
bsalomon
The CQ bit was checked by bsalomon@google.com
6 years, 7 months ago (2014-05-09 13:44:49 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/bsalomon@google.com/275563005/60001
6 years, 7 months ago (2014-05-09 13:45:37 UTC) #4
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-09 13:52:45 UTC) #5
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-09 13:59:20 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu13.10-GCC4.8-x86_64-Release-Trybot on tryserver.chromium (http://108.170.220.76:10117/builders/Build-Ubuntu13.10-GCC4.8-x86_64-Release-Trybot/builds/2366)
6 years, 7 months ago (2014-05-09 13:59:21 UTC) #7
bsalomon
The CQ bit was checked by bsalomon@google.com
6 years, 7 months ago (2014-05-09 14:13:51 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/bsalomon@google.com/275563005/80001
6 years, 7 months ago (2014-05-09 14:14:44 UTC) #9
commit-bot: I haz the power
Change committed as 14669
6 years, 7 months ago (2014-05-09 14:29:36 UTC) #10
bsalomon
6 years, 7 months ago (2014-05-09 15:23:52 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/275563005/diff/40001/include/gpu/GrContext.h
File include/gpu/GrContext.h (right):

https://codereview.chromium.org/275563005/diff/40001/include/gpu/GrContext.h#...
include/gpu/GrContext.h:125: *  @param resourceCount If non-null, returns the
number of resources that are held in the
On 2014/05/08 19:12:35, robertphillips wrote:
> extra space?

Done.

https://codereview.chromium.org/275563005/diff/40001/include/gpu/GrContext.h#...
include/gpu/GrContext.h:126: *                        cache.
On 2014/05/08 19:12:35, robertphillips wrote:
> just resourceBytes
> "returns The" -> "returns the" ?

Done.

https://codereview.chromium.org/275563005/diff/40001/src/gpu/GrContext.cpp
File src/gpu/GrContext.cpp (right):

https://codereview.chromium.org/275563005/diff/40001/src/gpu/GrContext.cpp#ne...
src/gpu/GrContext.cpp:578: void GrContext::getResourceCacheLimits(int*
maxTextures,
On 2014/05/08 19:12:35, robertphillips wrote:
> missing space? maybe one line?

Done.

Powered by Google App Engine
This is Rietveld 408576698