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

Issue 376703009: Use the GrCacheable ID to eliminate the need for notifications to GrGpuGL when textures and RTs are… (Closed)

Created:
6 years, 5 months ago by bsalomon
Modified:
6 years, 5 months ago
Reviewers:
jvanverth1
CC:
reviews_skia.org, egdaniel
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

Use the GrCacheable ID to eliminate the need for notifications to GrGpuGL when textures and RTs are deleted. Also, rename GrCacheable::getGenerationID() to getInstanceID() since it doesn't behave like other "generation" IDs. Committed: https://skia.googlesource.com/skia/+/91bdbcdbbdf5cdf0fdb4518a0d30206c964cfdf6

Patch Set 1 #

Patch Set 2 : improve #

Total comments: 2

Patch Set 3 : now with 64 bits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -55 lines) Patch
M include/gpu/GrCacheable.h View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M src/gpu/GrBitmapTextContext.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrBitmapTextContext.cpp View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M src/gpu/GrCacheable.cpp View 1 2 1 chunk +7 lines, -6 lines 0 comments Download
M src/gpu/gl/GrGLRenderTarget.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M src/gpu/gl/GrGLTexture.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M src/gpu/gl/GrGpuGL.h View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M src/gpu/gl/GrGpuGL.cpp View 1 2 15 chunks +20 lines, -35 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
bsalomon
We have these notifications simply because a memory address could be reused. This change is ...
6 years, 5 months ago (2014-07-08 19:02:28 UTC) #1
jvanverth1
Well, let's hope that we never have over 4 billion cacheable objects. :) LGTM + ...
6 years, 5 months ago (2014-07-08 19:35:43 UTC) #2
bsalomon
https://codereview.chromium.org/376703009/diff/20001/src/gpu/GrCacheable.cpp File src/gpu/GrCacheable.cpp (right): https://codereview.chromium.org/376703009/diff/20001/src/gpu/GrCacheable.cpp#newcode12 src/gpu/GrCacheable.cpp:12: static int32_t gCacheableID; On 2014/07/08 19:35:43, jvanverth1 wrote: > ...
6 years, 5 months ago (2014-07-08 19:39:12 UTC) #3
bsalomon
The CQ bit was checked by bsalomon@google.com
6 years, 5 months ago (2014-07-08 19:43:01 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/bsalomon@google.com/376703009/20001
6 years, 5 months ago (2014-07-08 19:43:16 UTC) #5
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: Build-Mac10.8-Clang-x86-Release-Trybot on tryserver.skia ...
6 years, 5 months ago (2014-07-08 20:10:22 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-08 20:19:31 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: Build-Mac10.8-Clang-x86-Release-Trybot on tryserver.skia (http://108.170.220.76:10117/builders/Build-Mac10.8-Clang-x86-Release-Trybot/builds/1778)
6 years, 5 months ago (2014-07-08 20:19:32 UTC) #8
bsalomon
The CQ bit was checked by bsalomon@google.com
6 years, 5 months ago (2014-07-17 16:14:19 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/bsalomon@google.com/376703009/40001
6 years, 5 months ago (2014-07-17 16:15:15 UTC) #10
commit-bot: I haz the power
Change committed as 91bdbcdbbdf5cdf0fdb4518a0d30206c964cfdf6
6 years, 5 months ago (2014-07-17 16:28:12 UTC) #11
robertphillips
6 years, 5 months ago (2014-07-20 16:20:41 UTC) #12
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/405023003/ by robertphillips@google.com.

The reason for reverting is: Trying to unblock roll wedged on 64 bit intrinsic
call on XP.

Powered by Google App Engine
This is Rietveld 408576698