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

Unified Diff: src/gpu/glsl/GrGLSLGeometryProcessor.cpp

Issue 1441683008: Move GrGLPrimitive/GeometryProc to GLSL (Closed) Base URL: https://skia.googlesource.com/skia.git@xferProcs
Patch Set: nits Created 5 years, 1 month 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/glsl/GrGLSLGeometryProcessor.h ('k') | src/gpu/glsl/GrGLSLPrimitiveProcessor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/glsl/GrGLSLGeometryProcessor.cpp
diff --git a/src/gpu/gl/GrGLGeometryProcessor.cpp b/src/gpu/glsl/GrGLSLGeometryProcessor.cpp
similarity index 82%
rename from src/gpu/gl/GrGLGeometryProcessor.cpp
rename to src/gpu/glsl/GrGLSLGeometryProcessor.cpp
index de4a5a3263619a8e11fe7734e75a36b7ea632bf1..c9f8c7138355afe9161019dd537afc88dfc8fca5 100644
--- a/src/gpu/gl/GrGLGeometryProcessor.cpp
+++ b/src/gpu/glsl/GrGLSLGeometryProcessor.cpp
@@ -5,26 +5,26 @@
* found in the LICENSE file.
*/
-#include "GrGLGeometryProcessor.h"
+#include "GrGLSLGeometryProcessor.h"
#include "glsl/GrGLSLFragmentShaderBuilder.h"
#include "glsl/GrGLSLProcessorTypes.h"
#include "glsl/GrGLSLProgramBuilder.h"
#include "glsl/GrGLSLVertexShaderBuilder.h"
-void GrGLGeometryProcessor::emitCode(EmitArgs& args) {
+void GrGLSLGeometryProcessor::emitCode(EmitArgs& args) {
GrGLSLVertexBuilder* vsBuilder = args.fPB->getVertexShaderBuilder();
GrGPArgs gpArgs;
this->onEmitCode(args, &gpArgs);
vsBuilder->transformToNormalizedDeviceSpace(gpArgs.fPositionVar);
}
-void GrGLGeometryProcessor::emitTransforms(GrGLSLGPBuilder* pb,
- const GrShaderVar& posVar,
- const char* localCoords,
- const SkMatrix& localMatrix,
- const TransformsIn& tin,
- TransformsOut* tout) {
+void GrGLSLGeometryProcessor::emitTransforms(GrGLSLGPBuilder* pb,
+ const GrShaderVar& posVar,
+ const char* localCoords,
+ const SkMatrix& localMatrix,
+ const TransformsIn& tin,
+ TransformsOut* tout) {
GrGLSLVertexBuilder* vb = pb->getVertexShaderBuilder();
tout->push_back_n(tin.count());
fInstalledTransforms.push_back_n(tin.count());
@@ -92,10 +92,10 @@ void GrGLGeometryProcessor::emitTransforms(GrGLSLGPBuilder* pb,
}
}
-void GrGLGeometryProcessor::emitTransforms(GrGLSLGPBuilder* pb,
- const char* localCoords,
- const TransformsIn& tin,
- TransformsOut* tout) {
+void GrGLSLGeometryProcessor::emitTransforms(GrGLSLGPBuilder* pb,
+ const char* localCoords,
+ const TransformsIn& tin,
+ TransformsOut* tout) {
GrGLSLVertexBuilder* vb = pb->getVertexShaderBuilder();
tout->push_back_n(tin.count());
for (int i = 0; i < tin.count(); i++) {
@@ -121,19 +121,19 @@ void GrGLGeometryProcessor::emitTransforms(GrGLSLGPBuilder* pb,
}
}
-void GrGLGeometryProcessor::setupPosition(GrGLSLGPBuilder* pb,
- GrGPArgs* gpArgs,
- const char* posName) {
+void GrGLSLGeometryProcessor::setupPosition(GrGLSLGPBuilder* pb,
+ GrGPArgs* gpArgs,
+ const char* posName) {
GrGLSLVertexBuilder* vsBuilder = pb->getVertexShaderBuilder();
gpArgs->fPositionVar.set(kVec2f_GrSLType, "pos2");
vsBuilder->codeAppendf("vec2 %s = %s;", gpArgs->fPositionVar.c_str(), posName);
}
-void GrGLGeometryProcessor::setupPosition(GrGLSLGPBuilder* pb,
- GrGPArgs* gpArgs,
- const char* posName,
- const SkMatrix& mat,
- UniformHandle* viewMatrixUniform) {
+void GrGLSLGeometryProcessor::setupPosition(GrGLSLGPBuilder* pb,
+ GrGPArgs* gpArgs,
+ const char* posName,
+ const SkMatrix& mat,
+ UniformHandle* viewMatrixUniform) {
GrGLSLVertexBuilder* vsBuilder = pb->getVertexShaderBuilder();
if (mat.isIdentity()) {
gpArgs->fPositionVar.set(kVec2f_GrSLType, "pos2");
« no previous file with comments | « src/gpu/glsl/GrGLSLGeometryProcessor.h ('k') | src/gpu/glsl/GrGLSLPrimitiveProcessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698