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

Unified Diff: src/gpu/GrBufferedDrawTarget.h

Issue 1315513008: Cleanup GrDrawTarget now that all paths lead to GrBatch (Closed) Base URL: https://skia.googlesource.com/skia.git@patharray
Patch Set: remove change to SampleApp.cpp Created 5 years, 3 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 | « gyp/gpu.gypi ('k') | src/gpu/GrBufferedDrawTarget.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrBufferedDrawTarget.h
diff --git a/src/gpu/GrBufferedDrawTarget.h b/src/gpu/GrBufferedDrawTarget.h
deleted file mode 100644
index 79b1a71cfe92854e6f011938b6c6b7d819e4511b..0000000000000000000000000000000000000000
--- a/src/gpu/GrBufferedDrawTarget.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright 2011 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef GrBufferedDrawTarget_DEFINED
-#define GrBufferedDrawTarget_DEFINED
-
-#include "GrDrawTarget.h"
-#include "GrCommandBuilder.h"
-#include "SkChunkAlloc.h"
-
-/**
- * GrBufferedDrawTarget is an implementation of GrDrawTarget that queues up draws for eventual
- * playback into a GrGpu. In theory one draw buffer could playback into another. Similarly, it is
- * the caller's responsibility to ensure that all referenced textures, buffers, and render-targets
- * are associated in the GrGpu object that the buffer is played back into.
- */
-class GrBufferedDrawTarget : public GrClipTarget {
-public:
- /**
- * Creates a GrBufferedDrawTarget
- *
- * @param context the context object that owns this draw buffer.
- */
- GrBufferedDrawTarget(GrContext* context);
-
- ~GrBufferedDrawTarget() override;
-
-protected:
- void onDrawBatch(GrBatch*) override;
-
-private:
- void onReset() override;
- void onFlush() override;
-
- SkAutoTDelete<GrCommandBuilder> fCommands;
- uint32_t fDrawID;
-
- typedef GrClipTarget INHERITED;
-};
-
-#endif
« no previous file with comments | « gyp/gpu.gypi ('k') | src/gpu/GrBufferedDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698