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

Unified Diff: src/core/SkCodecImageGenerator.h

Issue 1582373003: Revert of Create an SkCodecImageGenerator (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 11 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/core.gypi ('k') | src/core/SkCodecImageGenerator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkCodecImageGenerator.h
diff --git a/src/core/SkCodecImageGenerator.h b/src/core/SkCodecImageGenerator.h
deleted file mode 100644
index 80eacb19c885544c5e93bdec605e5725d91b5da5..0000000000000000000000000000000000000000
--- a/src/core/SkCodecImageGenerator.h
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright 2015 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#include "SkCodec.h"
-#include "SkData.h"
-#include "SkImageGenerator.h"
-
-class SkCodecImageGenerator : public SkImageGenerator {
-public:
- /*
- * If this data represents an encoded image that we know how to decode,
- * return an SkCodecImageGenerator. Otherwise return nullptr.
- *
- * Refs the data if an image generator can be returned. Otherwise does
- * not affect the data.
- */
- static SkImageGenerator* NewFromEncodedCodec(SkData* data);
-
-protected:
- SkData* onRefEncodedData(SK_REFENCODEDDATA_CTXPARAM) override;
-
- bool onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, SkPMColor ctable[],
- int* ctableCount) override;
-
- bool onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3],
- SkYUVColorSpace* colorSpace) override;
-
-private:
- /*
- * Takes ownership of codec
- * Refs the data
- */
- SkCodecImageGenerator(SkCodec* codec, SkData* data);
-
- SkAutoTDelete<SkCodec> fCodec;
- SkAutoTUnref<SkData> fData;
-
- typedef SkImageGenerator INHERITED;
-};
« no previous file with comments | « gyp/core.gypi ('k') | src/core/SkCodecImageGenerator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698