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

Unified Diff: gpu/skia_bindings/gl_bindings_skia_cmd_buffer.cc

Issue 477623004: command_buffer: Support instanced path rendering in gpu command buffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new-03-path-funcs
Patch Set: address review comments Created 5 years, 2 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: gpu/skia_bindings/gl_bindings_skia_cmd_buffer.cc
diff --git a/gpu/skia_bindings/gl_bindings_skia_cmd_buffer.cc b/gpu/skia_bindings/gl_bindings_skia_cmd_buffer.cc
index 024c9ccf4e2236c181880c815ff58cc770715470..c92cb2254079507527b0338be1600913f9aeebb5 100644
--- a/gpu/skia_bindings/gl_bindings_skia_cmd_buffer.cc
+++ b/gpu/skia_bindings/gl_bindings_skia_cmd_buffer.cc
@@ -7,6 +7,7 @@
#ifndef GL_GLEXT_PROTOTYPES
#define GL_GLEXT_PROTOTYPES
#endif
+#include "base/logging.h"
#include "gpu/GLES2/gl2extchromium.h"
#include "third_party/khronos/GLES2/gl2.h"
#include "third_party/khronos/GLES2/gl2ext.h"
@@ -166,6 +167,15 @@ GrGLInterface* CreateCommandBufferSkiaGLBinding() {
functions->fStencilThenCoverFillPath = glStencilThenCoverFillPathCHROMIUM;
functions->fStencilThenCoverStrokePath =
glStencilThenCoverStrokePathCHROMIUM;
+ functions->fStencilFillPathInstanced = glStencilFillPathInstancedCHROMIUM;
+ functions->fStencilStrokePathInstanced =
+ glStencilStrokePathInstancedCHROMIUM;
+ functions->fCoverFillPathInstanced = glCoverFillPathInstancedCHROMIUM;
+ functions->fCoverStrokePathInstanced = glCoverStrokePathInstancedCHROMIUM;
+ functions->fStencilThenCoverFillPathInstanced =
+ glStencilThenCoverFillPathInstancedCHROMIUM;
+ functions->fStencilThenCoverStrokePathInstanced =
+ glStencilThenCoverStrokePathInstancedCHROMIUM;
}
return interface;

Powered by Google App Engine
This is Rietveld 408576698