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

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

Issue 1135113005: rename GrDrawTargetCaps.h to GrCaps.h and move to include (Closed) Base URL: https://skia.googlesource.com/skia.git@caps
Patch Set: rebase again Created 5 years, 7 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
« no previous file with comments | « src/gpu/GrGpu.cpp ('k') | src/gpu/GrPipeline.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
11 11
12 #include "GrCaps.h"
12 #include "GrContext.h" 13 #include "GrContext.h"
13 #include "GrDefaultPathRenderer.h" 14 #include "GrDefaultPathRenderer.h"
14 #include "GrDrawTargetCaps.h"
15 #include "GrGpu.h" 15 #include "GrGpu.h"
16 16
17 GrPathRendererChain::GrPathRendererChain(GrContext* context) 17 GrPathRendererChain::GrPathRendererChain(GrContext* context)
18 : fInit(false) 18 : fInit(false)
19 , fOwner(context) { 19 , fOwner(context) {
20 } 20 }
21 21
22 GrPathRendererChain::~GrPathRendererChain() { 22 GrPathRendererChain::~GrPathRendererChain() {
23 for (int i = 0; i < fChain.count(); ++i) { 23 for (int i = 0; i < fChain.count(); ++i) {
24 fChain[i]->unref(); 24 fChain[i]->unref();
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 void GrPathRendererChain::init() { 79 void GrPathRendererChain::init() {
80 SkASSERT(!fInit); 80 SkASSERT(!fInit);
81 GrGpu* gpu = fOwner->getGpu(); 81 GrGpu* gpu = fOwner->getGpu();
82 bool twoSided = gpu->caps()->twoSidedStencilSupport(); 82 bool twoSided = gpu->caps()->twoSidedStencilSupport();
83 bool wrapOp = gpu->caps()->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
« no previous file with comments | « src/gpu/GrGpu.cpp ('k') | src/gpu/GrPipeline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698