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

Unified Diff: include/images/SkBitmapRegionDecoder.h

Issue 21561002: Fixes for JPEG subset decoding. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Remove reference to unused file from the gyp Created 7 years, 5 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/images.gyp ('k') | src/images/SkBitmapRegionDecoder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/images/SkBitmapRegionDecoder.h
diff --git a/include/images/SkBitmapRegionDecoder.h b/include/images/SkBitmapRegionDecoder.h
deleted file mode 100644
index 56332343ccf329881b275931de67958abd581f61..0000000000000000000000000000000000000000
--- a/include/images/SkBitmapRegionDecoder.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright 2011 The Android Open Source Project
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-
-#ifndef SkBitmapRegionDecoder_DEFINED
-#define SkBitmapRegionDecoder_DEFINED
-
-#include "SkBitmap.h"
-#include "SkImageDecoder.h"
-#include "SkStream.h"
-
-struct SkIRect;
-
-/**
- * SkBitmapRegionDecoder can be used to decode a specified rect from an image.
- * This is particularly useful when the original image is large and you only
- * need parts of the image.
- *
- * However, not all image codecs on all platforms support this feature so be
- * prepared to fallback to standard decoding if decodeRegion(...) returns false.
- */
-class SkBitmapRegionDecoder {
-public:
- SkBitmapRegionDecoder(SkImageDecoder* decoder, SkStream* stream,
- int width, int height) {
- fDecoder = decoder;
- fStream = stream;
- fWidth = width;
- fHeight = height;
- }
- ~SkBitmapRegionDecoder() {
- SkDELETE(fDecoder);
- SkSafeUnref(fStream);
- }
-
- bool decodeRegion(SkBitmap* bitmap, const SkIRect& rect,
- SkBitmap::Config pref, int sampleSize);
-
- SkImageDecoder* getDecoder() const { return fDecoder; }
- int getWidth() const { return fWidth; }
- int getHeight() const { return fHeight; }
-
-private:
- SkImageDecoder* fDecoder;
- SkStream* fStream;
- int fWidth;
- int fHeight;
-};
-
-#endif
« no previous file with comments | « gyp/images.gyp ('k') | src/images/SkBitmapRegionDecoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698