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

Side by Side Diff: src/ports/SkImageDecoder_empty.cpp

Issue 849103004: Make SkStream *not* ref counted. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase, just in case. Created 5 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 unified diff | Download patch
« no previous file with comments | « src/ports/SkFontMgr_win_dw.cpp ('k') | src/ports/SkTypeface_win_dw.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "SkBitmap.h" 9 #include "SkBitmap.h"
10 #include "SkImage.h" 10 #include "SkImage.h"
11 #include "SkImageDecoder.h" 11 #include "SkImageDecoder.h"
12 #include "SkImageEncoder.h" 12 #include "SkImageEncoder.h"
13 #include "SkMovie.h" 13 #include "SkMovie.h"
14 #include "SkStream.h"
14 15
15 class SkColorTable; 16 class SkColorTable;
16 class SkStream;
17 class SkStreamRewindable;
18 17
19 // Empty implementations for SkImageDecoder. 18 // Empty implementations for SkImageDecoder.
20 19
21 SkImageDecoder::SkImageDecoder() {} 20 SkImageDecoder::SkImageDecoder() {}
22 21
23 SkImageDecoder::~SkImageDecoder() {} 22 SkImageDecoder::~SkImageDecoder() {}
24 23
25 SkImageDecoder* SkImageDecoder::Factory(SkStreamRewindable*) { 24 SkImageDecoder* SkImageDecoder::Factory(SkStreamRewindable*) {
26 return NULL; 25 return NULL;
27 } 26 }
(...skipping 13 matching lines...) Expand all
41 } 40 }
42 41
43 bool SkImageDecoder::DecodeMemory(const void*, size_t, SkBitmap*, SkColorType, M ode, Format*) { 42 bool SkImageDecoder::DecodeMemory(const void*, size_t, SkBitmap*, SkColorType, M ode, Format*) {
44 return false; 43 return false;
45 } 44 }
46 45
47 bool SkImageDecoder::buildTileIndex(SkStreamRewindable*, int *width, int *height ) { 46 bool SkImageDecoder::buildTileIndex(SkStreamRewindable*, int *width, int *height ) {
48 return false; 47 return false;
49 } 48 }
50 49
50 bool SkImageDecoder::onBuildTileIndex(SkStreamRewindable* stream,
51 int* /*width*/, int* /*height*/) {
52 SkDELETE(stream);
53 return false;
54 }
55
56
51 bool SkImageDecoder::decodeSubset(SkBitmap*, const SkIRect&, SkColorType) { 57 bool SkImageDecoder::decodeSubset(SkBitmap*, const SkIRect&, SkColorType) {
52 return false; 58 return false;
53 } 59 }
54 60
55 SkImageDecoder::Format SkImageDecoder::getFormat() const { 61 SkImageDecoder::Format SkImageDecoder::getFormat() const {
56 return kUnknown_Format; 62 return kUnknown_Format;
57 } 63 }
58 64
59 SkImageDecoder::Format SkImageDecoder::GetStreamFormat(SkStreamRewindable*) { 65 SkImageDecoder::Format SkImageDecoder::GetStreamFormat(SkStreamRewindable*) {
60 return kUnknown_Format; 66 return kUnknown_Format;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 } 122 }
117 123
118 SkData* SkImageEncoder::encodeData(const SkBitmap&, int) { 124 SkData* SkImageEncoder::encodeData(const SkBitmap&, int) {
119 return NULL; 125 return NULL;
120 } 126 }
121 127
122 bool SkImageEncoder::encodeFile(const char file[], const SkBitmap& bm, int quali ty) { 128 bool SkImageEncoder::encodeFile(const char file[], const SkBitmap& bm, int quali ty) {
123 return false; 129 return false;
124 } 130 }
125 ///////////////////////////////////////////////////////////////////////// 131 /////////////////////////////////////////////////////////////////////////
OLDNEW
« no previous file with comments | « src/ports/SkFontMgr_win_dw.cpp ('k') | src/ports/SkTypeface_win_dw.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698