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

Side by Side Diff: src/gpu/effects/GrBicubicEffect.cpp

Issue 1316123003: Style Change: SkNEW->new; SkDELETE->delete (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-26 (Wednesday) 15:59:00 EDT Created 5 years, 3 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/effects/GrBicubicEffect.h ('k') | src/gpu/effects/GrBitmapTextGeoProc.h » ('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 2014 Google Inc. 2 * Copyright 2014 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 "GrBicubicEffect.h" 8 #include "GrBicubicEffect.h"
9 #include "GrInvariantOutput.h" 9 #include "GrInvariantOutput.h"
10 #include "gl/builders/GrGLProgramBuilder.h" 10 #include "gl/builders/GrGLProgramBuilder.h"
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 152
153 GrBicubicEffect::~GrBicubicEffect() { 153 GrBicubicEffect::~GrBicubicEffect() {
154 } 154 }
155 155
156 void GrBicubicEffect::onGetGLProcessorKey(const GrGLSLCaps& caps, 156 void GrBicubicEffect::onGetGLProcessorKey(const GrGLSLCaps& caps,
157 GrProcessorKeyBuilder* b) const { 157 GrProcessorKeyBuilder* b) const {
158 GrGLBicubicEffect::GenKey(*this, caps, b); 158 GrGLBicubicEffect::GenKey(*this, caps, b);
159 } 159 }
160 160
161 GrGLFragmentProcessor* GrBicubicEffect::onCreateGLInstance() const { 161 GrGLFragmentProcessor* GrBicubicEffect::onCreateGLInstance() const {
162 return SkNEW_ARGS(GrGLBicubicEffect, (*this)); 162 return new GrGLBicubicEffect(*this);
163 } 163 }
164 164
165 bool GrBicubicEffect::onIsEqual(const GrFragmentProcessor& sBase) const { 165 bool GrBicubicEffect::onIsEqual(const GrFragmentProcessor& sBase) const {
166 const GrBicubicEffect& s = sBase.cast<GrBicubicEffect>(); 166 const GrBicubicEffect& s = sBase.cast<GrBicubicEffect>();
167 return !memcmp(fCoefficients, s.coefficients(), 16) && 167 return !memcmp(fCoefficients, s.coefficients(), 16) &&
168 fDomain == s.fDomain; 168 fDomain == s.fDomain;
169 } 169 }
170 170
171 void GrBicubicEffect::onComputeInvariantOutput(GrInvariantOutput* inout) const { 171 void GrBicubicEffect::onComputeInvariantOutput(GrInvariantOutput* inout) const {
172 // FIXME: Perhaps we can do better. 172 // FIXME: Perhaps we can do better.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // Use bilerp to handle rotation or fractional translation. 210 // Use bilerp to handle rotation or fractional translation.
211 *filterMode = GrTextureParams::kBilerp_FilterMode; 211 *filterMode = GrTextureParams::kBilerp_FilterMode;
212 } 212 }
213 return false; 213 return false;
214 } 214 }
215 // When we use the bicubic filtering effect each sample is read from the tex ture using 215 // When we use the bicubic filtering effect each sample is read from the tex ture using
216 // nearest neighbor sampling. 216 // nearest neighbor sampling.
217 *filterMode = GrTextureParams::kNone_FilterMode; 217 *filterMode = GrTextureParams::kNone_FilterMode;
218 return true; 218 return true;
219 } 219 }
OLDNEW
« no previous file with comments | « src/gpu/effects/GrBicubicEffect.h ('k') | src/gpu/effects/GrBitmapTextGeoProc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698