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

Unified Diff: src/gpu/GrImmediateDrawTarget.h

Issue 1225923010: Refugee from Dead Machine 4: MDB Monster Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Last update from dead machine Created 4 years, 8 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/GrGpuResourceRef.cpp ('k') | src/gpu/GrImmediateDrawTarget.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrImmediateDrawTarget.h
diff --git a/src/gpu/GrImmediateDrawTarget.h b/src/gpu/GrImmediateDrawTarget.h
new file mode 100644
index 0000000000000000000000000000000000000000..a111f7643e9a8f9d980c400ea2e69f0ceccb5c1c
--- /dev/null
+++ b/src/gpu/GrImmediateDrawTarget.h
@@ -0,0 +1,57 @@
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef GrImmediateDrawTarget_DEFINED
+#define GrImmediateDrawTarget_DEFINED
+
+#if 0
+#include "GrDrawTarget.h"
+
+#include "GrBatchFlushState.h"
+
+/**
+ * A debug GrDrawTarget which immediately flushes every command it receives
+ */
+class GrImmediateDrawTarget : public GrClipTarget {
+public:
+ /**
+ * Creates a GrImmediateDrawTarget
+ *
+ * @param context the context object that owns this draw buffer.
+ */
+ GrImmediateDrawTarget(GrDrawContext* dc, GrRenderTarget* rt, GrContext* context);
+
+ ~GrImmediateDrawTarget() override;
+
+protected:
+ void onDrawBatch(GrBatch*) override;
+
+private:
+ void onReset() override;
+ void onFlush() override;
+
+ void onDrawPaths(const GrPathProcessor*,
+ const GrPathRange*,
+ const void* indices,
+ PathIndexType,
+ const float transformValues[],
+ PathTransformType,
+ int count,
+ const GrStencilSettings&,
+ const PipelineInfo&) override {
+ SkFAIL("Only batch implemented\n");
+ }
+
+ bool isIssued(uint32_t drawID) override { return drawID != fDrawID; }
+
+ uint32_t fDrawID;
+
+ typedef GrClipTarget INHERITED;
+};
+#endif
+
+#endif
« no previous file with comments | « src/gpu/GrGpuResourceRef.cpp ('k') | src/gpu/GrImmediateDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698