Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2246)

Issue 6458089: Refactored cacheID in preparation for clip mask caching changes (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 3 months ago by robertphillips
Modified:
12 years, 3 months ago
Reviewers:
bsalomon
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

This CL adds more structure to the cacheID. The resource type is now explicitly represented (instead of being a bit flag) and a new domain field has been added.

Patch Set 1 #

Patch Set 2 : Fixed comments #

Patch Set 3 : Made resource type & domain dynamically allocated & split GrCacheID into its own class (esp. separa… #

Total comments: 23

Patch Set 4 : Removed static initializers, fixed comments #

Total comments: 3

Patch Set 5 : Moved static domain & resource-type members into accessor functions #

Patch Set 6 : Moved static method's implementation to .cpp to avoid any issues w/ static variable #

Patch Set 7 : Fixed location of resource domain decl #

Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -49 lines) Patch
M gyp/gpu.gyp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M include/gpu/GrTexture.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
A src/gpu/GrCacheID.h View 1 2 3 4 5 6 1 chunk +104 lines, -0 lines 0 comments Download
A src/gpu/GrCacheID.cpp View 1 2 3 1 chunk +44 lines, -0 lines 0 comments Download
M src/gpu/GrClipMaskManager.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M src/gpu/GrClipMaskManager.cpp View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M src/gpu/GrContext.cpp View 1 2 2 chunks +7 lines, -22 lines 0 comments Download
M src/gpu/GrResourceCache.h View 1 2 1 chunk +0 lines, -10 lines 0 comments Download
M src/gpu/GrStencilBuffer.h View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M src/gpu/GrStencilBuffer.cpp View 1 2 3 4 5 2 chunks +32 lines, -0 lines 0 comments Download
M src/gpu/GrTexture.cpp View 1 2 3 4 5 5 chunks +20 lines, -17 lines 0 comments Download

Messages

Total messages: 9
robertphillips
12 years, 3 months ago (2012-08-06 14:57:08 UTC) #1
robertphillips
This patch makes the resource type & domain explicitly extensible. It also separates the GrCacheID ...
12 years, 3 months ago (2012-08-07 12:55:38 UTC) #2
bsalomon
This is looking like a big step in the right direction for the future of ...
12 years, 3 months ago (2012-08-07 13:30:00 UTC) #3
robertphillips
http://codereview.appspot.com/6458089/diff/4002/src/gpu/GrCacheID.cpp File src/gpu/GrCacheID.cpp (right): http://codereview.appspot.com/6458089/diff/4002/src/gpu/GrCacheID.cpp#newcode16 src/gpu/GrCacheID.cpp:16: if (domain < 0 || domain >= 256) { ...
12 years, 3 months ago (2012-08-07 15:12:35 UTC) #4
bsalomon
http://codereview.appspot.com/6458089/diff/4002/src/gpu/GrCacheID.cpp File src/gpu/GrCacheID.cpp (right): http://codereview.appspot.com/6458089/diff/4002/src/gpu/GrCacheID.cpp#newcode38 src/gpu/GrCacheID.cpp:38: v[0] = (uint32_t) (fPublicID & 0xffffffffUL); On 2012/08/07 15:12:35, ...
12 years, 3 months ago (2012-08-07 15:26:25 UTC) #5
robertphillips
The private/public switch was to protect the member variable from inadvertent changes. Moving the static ...
12 years, 3 months ago (2012-08-07 17:58:49 UTC) #6
robertphillips
Publish moved static function's body to .cpp to prevent any problems with static local variable.
12 years, 3 months ago (2012-08-07 19:46:20 UTC) #7
bsalomon
LGTM. Soon the macros will write the code for us and we can quit!
12 years, 3 months ago (2012-08-07 20:00:49 UTC) #8
robertphillips
12 years, 3 months ago (2012-08-08 10:43:09 UTC) #9
committed as r5002
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b