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

Unified Diff: src/codec/SkCodec_wbmp.h

Issue 1567863003: Rename SkGifCodec, SkIcoCodec, SkWbmpCodec (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 | « src/codec/SkCodec_libico.cpp ('k') | src/codec/SkCodec_wbmp.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codec/SkCodec_wbmp.h
diff --git a/src/codec/SkCodec_wbmp.h b/src/codec/SkCodec_wbmp.h
deleted file mode 100644
index fb062c94d597d87e18ca5198ed333dd28aca6fb7..0000000000000000000000000000000000000000
--- a/src/codec/SkCodec_wbmp.h
+++ /dev/null
@@ -1,63 +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.
- */
-
-#ifndef SkCodec_wbmp_DEFINED
-#define SkCodec_wbmp_DEFINED
-
-#include "SkCodec.h"
-#include "SkSwizzler.h"
-
-class SkWbmpCodec final : public SkCodec {
-public:
- static bool IsWbmp(const void*, size_t);
-
- /*
- * Assumes IsWbmp was called and returned true
- * Creates a wbmp codec
- * Takes ownership of the stream
- */
- static SkCodec* NewFromStream(SkStream*);
-
-protected:
- SkEncodedFormat onGetEncodedFormat() const override;
- Result onGetPixels(const SkImageInfo&, void*, size_t,
- const Options&, SkPMColor[], int*, int*) override;
- bool onRewind() override;
-private:
- /*
- * Returns a swizzler on success, nullptr on failure
- */
- SkSwizzler* initializeSwizzler(const SkImageInfo& info, const SkPMColor* ctable,
- const Options& opts);
- SkSampler* getSampler(bool createIfNecessary) override {
- SkASSERT(fSwizzler || !createIfNecessary);
- return fSwizzler;
- }
-
- /*
- * Read a src row from the encoded stream
- */
- bool readRow(uint8_t* row);
-
- SkWbmpCodec(const SkImageInfo&, SkStream*);
-
- const size_t fSrcRowBytes;
-
- // Used for scanline decodes:
- SkAutoTDelete<SkSwizzler> fSwizzler;
- SkAutoTUnref<SkColorTable> fColorTable;
- SkAutoTMalloc<uint8_t> fSrcBuffer;
-
- // FIXME: Override onSkipScanlines to avoid swizzling.
- int onGetScanlines(void* dst, int count, size_t dstRowBytes) override;
- Result onStartScanlineDecode(const SkImageInfo& dstInfo, const Options& options,
- SkPMColor inputColorTable[], int* inputColorCount) override;
-
- typedef SkCodec INHERITED;
-};
-
-#endif // SkCodec_wbmp_DEFINED
« no previous file with comments | « src/codec/SkCodec_libico.cpp ('k') | src/codec/SkCodec_wbmp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698