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

Unified Diff: src/gpu/instanced/GLInstancedRendering.h

Issue 2123693002: Revert of Begin instanced rendering for simple shapes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 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/GrGLGpu.cpp ('k') | src/gpu/instanced/GLInstancedRendering.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/instanced/GLInstancedRendering.h
diff --git a/src/gpu/instanced/GLInstancedRendering.h b/src/gpu/instanced/GLInstancedRendering.h
deleted file mode 100644
index 569e6e316014b5597d0705f42e7feaa4966477ef..0000000000000000000000000000000000000000
--- a/src/gpu/instanced/GLInstancedRendering.h
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * Copyright 2016 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef gr_instanced_GLInstancedRendering_DEFINED
-#define gr_instanced_GLInstancedRendering_DEFINED
-
-#include "gl/GrGLBuffer.h"
-#include "instanced/InstancedRendering.h"
-
-class GrGLGpu;
-
-#define GR_GL_LOG_INSTANCED_BATCHES 0
-
-namespace gr_instanced {
-
-class GLInstancedRendering final : public InstancedRendering {
-public:
- static GLInstancedRendering* CreateIfSupported(GrGLGpu*);
- ~GLInstancedRendering() override;
-
-private:
- GLInstancedRendering(GrGLGpu*, AntialiasMode lastSupportedAAMode);
-
- GrGLGpu* glGpu() const;
-
- Batch* createBatch() override;
-
- void onBeginFlush(GrResourceProvider*) override;
- void onDraw(const GrPipeline&, const InstanceProcessor&, const Batch*) override;
- void onEndFlush() override;
- void onResetGpuResources(ResetType) override;
-
- void flushInstanceAttribs(int baseInstance);
-
- struct GLDrawCmdInfo {
- int fInstanceCount;
-#if GR_GL_LOG_INSTANCED_BATCHES
- IndexRange fGeometry;
-#endif
- };
-
- GrGLuint fVertexArrayID;
- SkAutoTUnref<GrGLBuffer> fInstanceBuffer;
- SkAutoTUnref<GrGLBuffer> fDrawIndirectBuffer;
- SkAutoSTMalloc<1024, GLDrawCmdInfo> fGLDrawCmdsInfo;
- uint32_t fInstanceAttribsBufferUniqueId;
- int fInstanceAttribsBaseInstance;
-
- class GLBatch;
-
- typedef InstancedRendering INHERITED;
-};
-
-}
-
-#endif
« no previous file with comments | « src/gpu/gl/GrGLGpu.cpp ('k') | src/gpu/instanced/GLInstancedRendering.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698