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

Issue 12843026: Make GrDrawTarget::Caps ref counted and GrGLCaps derive from it. (Closed)

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

Description

Make GrDrawTarget::Caps ref counted and GrGLCaps derive from it. Also rename GrDrawTarget::getCaps() -> GrDrawTarget::caps(). Committed: https://code.google.com/p/skia/source/detail?r=8364

Patch Set 1 #

Patch Set 2 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+274 lines, -241 lines) Patch
M src/gpu/GrAAConvexPathRenderer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrAAHairLinePathRenderer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrBufferAllocPool.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/GrClipMaskManager.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M src/gpu/GrContext.cpp View 3 chunks +6 lines, -6 lines 0 comments Download
M src/gpu/GrDrawTarget.h View 1 6 chunks +36 lines, -48 lines 0 comments Download
M src/gpu/GrDrawTarget.cpp View 1 4 chunks +54 lines, -16 lines 0 comments Download
M src/gpu/GrGpu.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrInOrderDrawBuffer.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/GrPathRendererChain.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M src/gpu/GrStencilAndCoverPathRenderer.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/GrTexture.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/GrGLBufferImpl.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/gl/GrGLCaps.h View 1 5 chunks +6 lines, -3 lines 0 comments Download
M src/gpu/gl/GrGLCaps.cpp View 1 6 chunks +114 lines, -15 lines 0 comments Download
M src/gpu/gl/GrGLContext.h View 3 chunks +12 lines, -9 lines 0 comments Download
M src/gpu/gl/GrGLContext.cpp View 3 chunks +3 lines, -3 lines 3 comments Download
M src/gpu/gl/GrGLProgram.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/gl/GrGLShaderBuilder.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/gl/GrGpuGL.h View 3 chunks +1 line, -6 lines 0 comments Download
M src/gpu/gl/GrGpuGL.cpp View 17 chunks +18 lines, -111 lines 0 comments Download
M tests/GLProgramsTest.cpp View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
bsalomon
The meat is in GrDrawTarget.h and GrGLCaps.h. Most of the rest of the files have ...
7 years, 9 months ago (2013-03-25 15:21:34 UTC) #1
robertphillips
lgtm + 1 question https://codereview.chromium.org/12843026/diff/9002/src/gpu/gl/GrGLContext.cpp File src/gpu/gl/GrGLContext.cpp (right): https://codereview.chromium.org/12843026/diff/9002/src/gpu/gl/GrGLContext.cpp#newcode16 src/gpu/gl/GrGLContext.cpp:16: fExtensions = ctxInfo.fExtensions; Shouldn't there ...
7 years, 9 months ago (2013-03-25 15:34:09 UTC) #2
bsalomon
https://codereview.chromium.org/12843026/diff/9002/src/gpu/gl/GrGLContext.cpp File src/gpu/gl/GrGLContext.cpp (right): https://codereview.chromium.org/12843026/diff/9002/src/gpu/gl/GrGLContext.cpp#newcode16 src/gpu/gl/GrGLContext.cpp:16: fExtensions = ctxInfo.fExtensions; On 2013/03/25 15:34:09, robertphillips wrote: > ...
7 years, 9 months ago (2013-03-25 15:37:27 UTC) #3
bsalomon
Committed patchset #2 manually as r8364 (presubmit successful).
7 years, 9 months ago (2013-03-25 15:38:52 UTC) #4
robertphillips
https://codereview.chromium.org/12843026/diff/9002/src/gpu/gl/GrGLContext.cpp File src/gpu/gl/GrGLContext.cpp (right): https://codereview.chromium.org/12843026/diff/9002/src/gpu/gl/GrGLContext.cpp#newcode16 src/gpu/gl/GrGLContext.cpp:16: fExtensions = ctxInfo.fExtensions; Okay - missed that when reading ...
7 years, 9 months ago (2013-03-25 22:41:28 UTC) #5
bsalomon
7 years, 9 months ago (2013-03-26 12:42:00 UTC) #6
Message was sent while issue was closed.
On 2013/03/25 22:41:28, robertphillips wrote:
> https://codereview.chromium.org/12843026/diff/9002/src/gpu/gl/GrGLContext.cpp
> File src/gpu/gl/GrGLContext.cpp (right):
> 
>
https://codereview.chromium.org/12843026/diff/9002/src/gpu/gl/GrGLContext.cpp...
> src/gpu/gl/GrGLContext.cpp:16: fExtensions = ctxInfo.fExtensions;
> Okay - missed that when reading through. Does that mean that the caps object's
> ref-counted-ness is never really used?

It's used in two places. GrGpuGL makes its GrDrawTarget::fCaps point at (and
ref) its fGLContext.info().caps(). Also, GrIODB makes its fCaps point at its
playback target fCaps.

Powered by Google App Engine
This is Rietveld 408576698