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

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

Issue 2038583002: Add GpuCommandBuffer support. (Closed) Base URL: https://skia.googlesource.com/skia.git@secondaryCB
Patch Set: rebase 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/gl/GrGLGpuCommandBuffer.h
diff --git a/src/gpu/gl/GrGLGpuCommandBuffer.h b/src/gpu/gl/GrGLGpuCommandBuffer.h
new file mode 100644
index 0000000000000000000000000000000000000000..f844b5eb73694e1c521fc94ff46e5992f25c4c3b
--- /dev/null
+++ b/src/gpu/gl/GrGLGpuCommandBuffer.h
@@ -0,0 +1,32 @@
+/*
+* 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 GrGLGpuCommandBuffer_DEFINED
+#define GrGLGpuCommandBuffer_DEFINED
+
+#include "GrGpuCommandBuffer.h"
+
+class GrGLGpu;
+
+class GrGLGpuCommandBuffer : public GrGpuCommandBuffer {
+public:
+ GrGLGpuCommandBuffer(GrGLGpu* gpu) : fGpu(gpu) {}
+
+ virtual ~GrGLGpuCommandBuffer() {}
+
+ void end() override {}
+
+ void submit() override {}
+
+private:
+ GrGLGpu* fGpu;
+
+ typedef GrGpuCommandBuffer INHERITED;
+};
+
+#endif
+

Powered by Google App Engine
This is Rietveld 408576698