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

Unified Diff: src/gpu/GrGpu.h

Issue 2066993003: Begin instanced rendering for simple shapes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: get mixed samples and base instance paths working again Created 4 years, 6 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
Index: src/gpu/GrGpu.h
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h
index a99ce8f45e4370c042640dbca967ea4ca042004a..de652054a755e3b48a622aac486ecd5edf122376 100644
--- a/src/gpu/GrGpu.h
+++ b/src/gpu/GrGpu.h
@@ -38,6 +38,8 @@ class GrStencilSettings;
class GrSurface;
class GrTexture;
+namespace gr_instanced { class InstancedRendering; }
+
class GrGpu : public SkRefCnt {
public:
/**
@@ -147,6 +149,13 @@ public:
const void* data = nullptr);
/**
+ * Creates an instanced rendering object if it is supported on this platform.
+ */
+ virtual gr_instanced::InstancedRendering* createInstancedRenderingIfSupported() {
+ return nullptr;
+ }
+
+ /**
* Resolves MSAA.
*/
void resolveRenderTarget(GrRenderTarget* target);

Powered by Google App Engine
This is Rietveld 408576698