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

Unified Diff: src/core/SkRecording.cpp

Issue 660903002: Remove obsolete SkRecording. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: clean up Created 6 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
« no previous file with comments | « include/record/SkRecording.h ('k') | tests/RecordingTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkRecording.cpp
diff --git a/src/core/SkRecording.cpp b/src/core/SkRecording.cpp
deleted file mode 100644
index 368ebb2fb314f453046a87e75b2bfa668094f385..0000000000000000000000000000000000000000
--- a/src/core/SkRecording.cpp
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright 2014 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#include "../../include/record/SkRecording.h"
-
-#include "SkRecord.h"
-#include "SkRecordOpts.h"
-#include "SkRecordDraw.h"
-#include "SkRecorder.h"
-
-namespace EXPERIMENTAL {
-
-SkPlayback::SkPlayback(const SkRecord* record) : fRecord(record) {}
-
-SkPlayback::~SkPlayback() {}
-
-void SkPlayback::draw(SkCanvas* canvas) const {
- SkASSERT(fRecord.get() != NULL);
- SkRecordDraw(*fRecord, canvas, NULL/*bbh*/, NULL/*callback*/);
-}
-
-SkRecording::SkRecording(int width, int height)
- : fRecord(SkNEW(SkRecord))
- , fRecorder(SkNEW_ARGS(SkRecorder, (fRecord.get(), width, height)))
- {}
-
-SkPlayback* SkRecording::releasePlayback() {
- SkASSERT(fRecorder->unique());
- fRecorder->forgetRecord();
- SkRecordOptimize(fRecord.get());
- return SkNEW_ARGS(SkPlayback, (fRecord.detach()));
-}
-
-SkRecording::~SkRecording() {}
-
-SkCanvas* SkRecording::canvas() {
- return fRecord.get() ? fRecorder.get() : NULL;
-}
-
-} // namespace EXPERIMENTAL
« no previous file with comments | « include/record/SkRecording.h ('k') | tests/RecordingTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698