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

Side by Side Diff: src/gpu/GrPathRendererChain.cpp

Issue 12843026: Make GrDrawTarget::Caps ref counted and GrGLCaps derive from it. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #include "GrPathRendererChain.h" 10 #include "GrPathRendererChain.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 } 72 }
73 return fChain[i]; 73 return fChain[i];
74 } 74 }
75 } 75 }
76 return NULL; 76 return NULL;
77 } 77 }
78 78
79 void GrPathRendererChain::init() { 79 void GrPathRendererChain::init() {
80 GrAssert(!fInit); 80 GrAssert(!fInit);
81 GrGpu* gpu = fOwner->getGpu(); 81 GrGpu* gpu = fOwner->getGpu();
82 bool twoSided = gpu->getCaps().twoSidedStencilSupport(); 82 bool twoSided = gpu->caps()->twoSidedStencilSupport();
83 bool wrapOp = gpu->getCaps().stencilWrapOpsSupport(); 83 bool wrapOp = gpu->caps()->stencilWrapOpsSupport();
84 GrPathRenderer::AddPathRenderers(fOwner, this); 84 GrPathRenderer::AddPathRenderers(fOwner, this);
85 this->addPathRenderer(SkNEW_ARGS(GrDefaultPathRenderer, 85 this->addPathRenderer(SkNEW_ARGS(GrDefaultPathRenderer,
86 (twoSided, wrapOp)))->unref(); 86 (twoSided, wrapOp)))->unref();
87 fInit = true; 87 fInit = true;
88 } 88 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698