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

Unified Diff: src/gpu/effects/GrCustomCoordsTextureEffect.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/effects/GrBitmapTextGeoProc.cpp ('k') | src/gpu/effects/GrCustomCoordsTextureEffect.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/effects/GrCustomCoordsTextureEffect.h
diff --git a/src/gpu/effects/GrCustomCoordsTextureEffect.h b/src/gpu/effects/GrCustomCoordsTextureEffect.h
deleted file mode 100644
index a2b62ed3b80f3bb0c002ba80105a90e28db65f6a..0000000000000000000000000000000000000000
--- a/src/gpu/effects/GrCustomCoordsTextureEffect.h
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Copyright 2013 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef GrCustomCoordsTextureEffect_DEFINED
-#define GrCustomCoordsTextureEffect_DEFINED
-
-#include "GrProcessor.h"
-#include "GrGeometryProcessor.h"
-
-class GrGLCustomCoordsTextureEffect;
-class GrInvariantOutput;
-
-/**
- * The output color of this effect is a modulation of the input color and a sample from a texture.
- * It allows explicit specification of the filtering and wrap modes (GrTextureParams). The input
- * coords are a custom attribute.
- */
-class GrCustomCoordsTextureEffect : public GrGeometryProcessor {
-public:
- static GrGeometryProcessor* Create(GrTexture* tex, const GrTextureParams& p, bool hasColor) {
- return SkNEW_ARGS(GrCustomCoordsTextureEffect, (tex, p, hasColor));
- }
-
- virtual ~GrCustomCoordsTextureEffect() {}
-
- virtual const char* name() const SK_OVERRIDE { return "Texture"; }
-
- const GrAttribute* inPosition() const { return fInPosition; }
- const GrAttribute* inColor() const { return fInColor; }
- const GrAttribute* inTextureCoords() const { return fInTextureCoords; }
-
- virtual void getGLProcessorKey(const GrBatchTracker& bt,
- const GrGLCaps& caps,
- GrProcessorKeyBuilder* b) const SK_OVERRIDE;
-
- virtual GrGLGeometryProcessor* createGLInstance(const GrBatchTracker& bt) const SK_OVERRIDE;
-
-private:
- GrCustomCoordsTextureEffect(GrTexture* texture, const GrTextureParams& params, bool hasColor);
-
- virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE;
-
- virtual void onComputeInvariantOutput(GrInvariantOutput* inout) const SK_OVERRIDE;
-
- GrTextureAccess fTextureAccess;
- const GrAttribute* fInPosition;
- const GrAttribute* fInColor;
- const GrAttribute* fInTextureCoords;
-
- GR_DECLARE_GEOMETRY_PROCESSOR_TEST;
-
- typedef GrGeometryProcessor INHERITED;
-};
-
-#endif
« no previous file with comments | « src/gpu/effects/GrBitmapTextGeoProc.cpp ('k') | src/gpu/effects/GrCustomCoordsTextureEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698