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

Unified Diff: src/gpu/effects/GrBitmapTextGeoProc.h

Issue 786293002: Rename CustomCoordTextureEffect to GrBitmapTextGeoProc. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Review updates Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrProcOptInfo.h ('k') | src/gpu/effects/GrBitmapTextGeoProc.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/effects/GrBitmapTextGeoProc.h
diff --git a/src/gpu/effects/GrCustomCoordsTextureEffect.h b/src/gpu/effects/GrBitmapTextGeoProc.h
similarity index 77%
rename from src/gpu/effects/GrCustomCoordsTextureEffect.h
rename to src/gpu/effects/GrBitmapTextGeoProc.h
index a2b62ed3b80f3bb0c002ba80105a90e28db65f6a..ecbf4f947035b714f52a2dd883b907e6baa5303c 100644
--- a/src/gpu/effects/GrCustomCoordsTextureEffect.h
+++ b/src/gpu/effects/GrBitmapTextGeoProc.h
@@ -5,13 +5,13 @@
* found in the LICENSE file.
*/
-#ifndef GrCustomCoordsTextureEffect_DEFINED
-#define GrCustomCoordsTextureEffect_DEFINED
+#ifndef GrBitmapTextGeoProc_DEFINED
+#define GrBitmapTextGeoProc_DEFINED
#include "GrProcessor.h"
#include "GrGeometryProcessor.h"
-class GrGLCustomCoordsTextureEffect;
+class GrGLBitmapTextGeoProc;
class GrInvariantOutput;
/**
@@ -19,13 +19,14 @@ class GrInvariantOutput;
* It allows explicit specification of the filtering and wrap modes (GrTextureParams). The input
* coords are a custom attribute.
*/
-class GrCustomCoordsTextureEffect : public GrGeometryProcessor {
+class GrBitmapTextGeoProc : public GrGeometryProcessor {
public:
- static GrGeometryProcessor* Create(GrTexture* tex, const GrTextureParams& p, bool hasColor) {
- return SkNEW_ARGS(GrCustomCoordsTextureEffect, (tex, p, hasColor));
+ static GrGeometryProcessor* Create(GrTexture* tex, const GrTextureParams& p,
+ bool useColorAttrib) {
+ return SkNEW_ARGS(GrBitmapTextGeoProc, (tex, p, useColorAttrib));
}
- virtual ~GrCustomCoordsTextureEffect() {}
+ virtual ~GrBitmapTextGeoProc() {}
virtual const char* name() const SK_OVERRIDE { return "Texture"; }
@@ -40,7 +41,7 @@ public:
virtual GrGLGeometryProcessor* createGLInstance(const GrBatchTracker& bt) const SK_OVERRIDE;
private:
- GrCustomCoordsTextureEffect(GrTexture* texture, const GrTextureParams& params, bool hasColor);
+ GrBitmapTextGeoProc(GrTexture* texture, const GrTextureParams& params, bool useColorAttrib);
virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE;
« no previous file with comments | « src/gpu/GrProcOptInfo.h ('k') | src/gpu/effects/GrBitmapTextGeoProc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698