diff options
author | 2011-03-10 14:13:19 +0000 | |
---|---|---|
committer | 2011-03-10 14:13:19 +0000 | |
commit | a7f84e150cb9e821267a8ca9e59c1ae9a3cfa300 (patch) | |
tree | 92d0c75a44d7ecfbb0a208fa6f9837ef071a8395 /gpu/src/GrGpuGLShaders2.h | |
parent | 63a6060fcdc16245ea3958e7fd88ae32c5e631a3 (diff) |
Make flush discardable and lazily reset context
Review URL: http://codereview.appspot.com/4259059/
git-svn-id: http://skia.googlecode.com/svn/trunk@914 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/src/GrGpuGLShaders2.h')
-rw-r--r-- | gpu/src/GrGpuGLShaders2.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gpu/src/GrGpuGLShaders2.h b/gpu/src/GrGpuGLShaders2.h index e8785c9677..4c501be69e 100644 --- a/gpu/src/GrGpuGLShaders2.h +++ b/gpu/src/GrGpuGLShaders2.h @@ -26,8 +26,6 @@ public: GrGpuGLShaders2(); virtual ~GrGpuGLShaders2(); - virtual void resetContext(); - protected: // overrides from GrGpu virtual bool flushGraphicsState(GrPrimitiveType type); @@ -38,7 +36,7 @@ protected: private: - void resetContextHelper(); + virtual void resetContext(); // Helpers to make code more readable const GrMatrix& getHWSamplerMatrix(int stage); |