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

Unified Diff: src/gpu/gl/GrGLPathProgramDataManager.h

Issue 1336763003: remove path specific program building classes (Closed) Base URL: https://skia.googlesource.com/skia.git@pathgp
Patch Set: a few more tidys 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/gl/GrGLPathProgram.cpp ('k') | src/gpu/gl/GrGLPathProgramDataManager.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/GrGLPathProgramDataManager.h
diff --git a/src/gpu/gl/GrGLPathProgramDataManager.h b/src/gpu/gl/GrGLPathProgramDataManager.h
deleted file mode 100644
index 376dff4b2d11f36627d455080c1a733ffd957ff6..0000000000000000000000000000000000000000
--- a/src/gpu/gl/GrGLPathProgramDataManager.h
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Copyright 2015 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef GrGLPathProgramDataManager_DEFINED
-#define GrGLPathProgramDataManager_DEFINED
-
-#include "gl/GrGLProgramDataManager.h"
-
-class GrGLPathProgram;
-class GrGLPathProgramBuilder;
-
-/** Manages the resources used by a shader program for NVPR rendering.
- */
-class GrGLPathProgramDataManager : SkNoncopyable {
-public:
- typedef GrGLProgramDataManager::ShaderResourceHandle SeparableVaryingHandle;
-
- struct SeparableVaryingInfo {
- GrGLShaderVar fVariable;
- GrGLint fLocation;
- };
-
- // This uses an allocator rather than array so that the GrGLShaderVars don't move in memory
- // after they are inserted. Users of GrGLShaderBuilder get refs to the vars and ptrs to their
- // name strings. Otherwise, we'd have to hand out copies.
- typedef GrTAllocator<SeparableVaryingInfo> SeparableVaryingInfoArray;
-
- GrGLPathProgramDataManager(GrGLGpu*, GrGLuint programID, const SeparableVaryingInfoArray&);
-
- /** Functions for uploading the varying values.
- */
- void setPathFragmentInputTransform(SeparableVaryingHandle u,
- int components,
- const SkMatrix& matrix) const;
-private:
- enum {
- kUnusedSeparableVarying = -1,
- };
- struct SeparableVarying {
- GrGLint fLocation;
- SkDEBUGCODE(
- GrSLType fType;
- int fArrayCount;
- );
- };
- SkTArray<SeparableVarying, true> fSeparableVaryings;
- GrGLGpu* fGpu;
- GrGLuint fProgramID;
- typedef SkNoncopyable INHERITED;
-};
-#endif
« no previous file with comments | « src/gpu/gl/GrGLPathProgram.cpp ('k') | src/gpu/gl/GrGLPathProgramDataManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698