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

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

Issue 1202293002: Move GLSL-specific routines/classes to separate glsl directory (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rename GrGLGLSL.{cpp,h} Created 5 years, 5 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/GrOvalRenderer.cpp ('k') | src/gpu/effects/GrBezierEffect.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 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "GrPathProcessor.h" 8 #include "GrPathProcessor.h"
9 9
10 #include "gl/GrGLPathProcessor.h" 10 #include "gl/GrGLPathProcessor.h"
11 #include "gl/GrGLGpu.h" 11 #include "gl/GrGLGpu.h"
12 12
13 #include "glsl/GrGLSLCaps.h"
14
13 GrPathProcessor::GrPathProcessor(GrColor color, 15 GrPathProcessor::GrPathProcessor(GrColor color,
14 const SkMatrix& viewMatrix, 16 const SkMatrix& viewMatrix,
15 const SkMatrix& localMatrix) 17 const SkMatrix& localMatrix)
16 : INHERITED(true) 18 : INHERITED(true)
17 , fColor(color) 19 , fColor(color)
18 , fViewMatrix(viewMatrix) 20 , fViewMatrix(viewMatrix)
19 , fLocalMatrix(localMatrix) { 21 , fLocalMatrix(localMatrix) {
20 this->initClassID<GrPathProcessor>(); 22 this->initClassID<GrPathProcessor>();
21 } 23 }
22 24
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 const GrGLSLCaps& caps, 78 const GrGLSLCaps& caps,
77 GrProcessorKeyBuilder* b) const { 79 GrProcessorKeyBuilder* b) const {
78 GrGLPathProcessor::GenKey(*this, bt, caps, b); 80 GrGLPathProcessor::GenKey(*this, bt, caps, b);
79 } 81 }
80 82
81 GrGLPrimitiveProcessor* GrPathProcessor::createGLInstance(const GrBatchTracker& bt, 83 GrGLPrimitiveProcessor* GrPathProcessor::createGLInstance(const GrBatchTracker& bt,
82 const GrGLSLCaps& caps ) const { 84 const GrGLSLCaps& caps ) const {
83 SkASSERT(caps.pathRenderingSupport()); 85 SkASSERT(caps.pathRenderingSupport());
84 return SkNEW_ARGS(GrGLPathProcessor, (*this, bt)); 86 return SkNEW_ARGS(GrGLPathProcessor, (*this, bt));
85 } 87 }
OLDNEW
« no previous file with comments | « src/gpu/GrOvalRenderer.cpp ('k') | src/gpu/effects/GrBezierEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698