http://codereview.appspot.com/4867058/diff/2001/gpu/include/GrContext.h File gpu/include/GrContext.h (left): http://codereview.appspot.com/4867058/diff/2001/gpu/include/GrContext.h#oldcode593 gpu/include/GrContext.h:593: void drawClipIntoStencil(); This is an ancient declaration that should ...
13 years, 4 months ago
(2011-08-17 18:05:38 UTC)
#1
On Wed, Aug 17, 2011 at 2:35 PM, <tomhudson@google.com> wrote: > I assume the purpose ...
13 years, 4 months ago
(2011-08-17 18:40:41 UTC)
#3
On Wed, Aug 17, 2011 at 2:35 PM, <tomhudson@google.com> wrote:
> I assume the purpose of this change is to get rid of the hardwired
> plain-and-maybe-tesselated assumption. Do we have more path renderers
> coming in such that we want to genericize? (Something you said earlier
> suggests we do, but I want it in writing.)
>
>
Yes, look for GrAAHairlinePathRenderer coming to an inbox near you. :)
http://codereview.appspot.com/4867058/diff/11001/gpu/src/GrAddPathRenderers_tesselated.cpp File gpu/src/GrAddPathRenderers_tesselated.cpp (right): http://codereview.appspot.com/4867058/diff/11001/gpu/src/GrAddPathRenderers_tesselated.cpp#newcode13 gpu/src/GrAddPathRenderers_tesselated.cpp:13: void GrPathRenderer::AddPathRenderers(GrContext*, Hmm. Since this is static, I guess ...
13 years, 4 months ago
(2011-08-17 21:32:11 UTC)
#5
http://codereview.appspot.com/4867058/diff/11001/gpu/src/GrAddPathRenderers_tesselated.cpp File gpu/src/GrAddPathRenderers_tesselated.cpp (right): http://codereview.appspot.com/4867058/diff/11001/gpu/src/GrAddPathRenderers_tesselated.cpp#newcode13 gpu/src/GrAddPathRenderers_tesselated.cpp:13: void GrPathRenderer::AddPathRenderers(GrContext*, On 2011/08/17 21:32:11, Stephen White wrote: > ...
13 years, 4 months ago
(2011-08-18 13:12:37 UTC)
#6
http://codereview.appspot.com/4867058/diff/11001/gpu/src/GrAddPathRenderers_t...
File gpu/src/GrAddPathRenderers_tesselated.cpp (right):
http://codereview.appspot.com/4867058/diff/11001/gpu/src/GrAddPathRenderers_t...
gpu/src/GrAddPathRenderers_tesselated.cpp:13: void
GrPathRenderer::AddPathRenderers(GrContext*,
On 2011/08/17 21:32:11, Stephen White wrote:
> Hmm. Since this is static, I guess that means we can only have one optional
> path renderer? e.g., you couldn't combine GrTesselatedPathRenderer with your
> new hairline renderer? Or would you just have to write another version of
> GrPathRenderer::AddPathRenderers() that adds the ones you want?
The latter. It's not an ideal solution. Another option I considered was using
static initialization to append path renderer factory functions to a global
list. The problem with that approach is that all the factories would have to be
appended from the same source file to control their order.
http://codereview.appspot.com/4867058/diff/11001/gpu/src/GrPathRendererChain.cpp
File gpu/src/GrPathRendererChain.cpp (right):
http://codereview.appspot.com/4867058/diff/11001/gpu/src/GrPathRendererChain....
gpu/src/GrPathRendererChain.cpp:19: , fOwner(context)
On 2011/08/17 21:32:11, Stephen White wrote:
> It looks like the context is only used at init() time (for checking gpu caps).
> Would it make sense to make it a parameter to getPathRenderer() instead? Just
a
> thought.
I think its desirable for a chain of path renderers to be specific to one
context over its lifetime. Otherwise, it would complicate a scenario where a
path renderer creates reusable resources (like say an index buffer).
Hey Stephen, are you OK with this as is? I'm open to suggestions on how ...
13 years, 4 months ago
(2011-08-19 12:38:46 UTC)
#7
Hey Stephen, are you OK with this as is? I'm open to suggestions on how to
improve the method of adding PRs to the list either in this change or a future
enhancement. I think someone has to decide the preference order so they probably
have to be inserted in one place.
On 2011/08/19 12:38:46, bsalomon wrote: > Hey Stephen, are you OK with this as is? ...
13 years, 4 months ago
(2011-08-19 14:49:25 UTC)
#8
On 2011/08/19 12:38:46, bsalomon wrote:
> Hey Stephen, are you OK with this as is? I'm open to suggestions on how to
> improve the method of adding PRs to the list either in this change or a future
> enhancement. I think someone has to decide the preference order so they
probably
> have to be inserted in one place.
LGTM. (Sorry, meant to do this yesterday).
Issue 4867058: Use prioritized list of path renderers
(Closed)
Created 13 years, 4 months ago by bsalomon
Modified 13 years, 4 months ago
Reviewers: TomH, Stephen White
Base URL: http://skia.googlecode.com/svn/trunk/
Comments: 10