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

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

Issue 1426943009: Delete dead SkImageDecoder::buildTileIndex and decodeSubset code (Closed) Base URL: https://skia.googlesource.com/skia.git@delete-tools
Patch Set: Created 5 years, 1 month 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/images/SkImageDecoder_libwebp.cpp ('k') | no next file » | 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"
(...skipping 25 matching lines...) Expand all
36 } 36 }
37 37
38 bool SkImageDecoder::DecodeStream(SkStreamRewindable*, SkBitmap*, SkColorType, M ode, Format*) { 38 bool SkImageDecoder::DecodeStream(SkStreamRewindable*, SkBitmap*, SkColorType, M ode, Format*) {
39 return false; 39 return false;
40 } 40 }
41 41
42 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*) {
43 return false; 43 return false;
44 } 44 }
45 45
46 bool SkImageDecoder::buildTileIndex(SkStreamRewindable*, int *width, int *height ) {
47 return false;
48 }
49
50 bool SkImageDecoder::onBuildTileIndex(SkStreamRewindable* stream,
51 int* /*width*/, int* /*height*/) {
52 delete stream;
53 return false;
54 }
55
56
57 bool SkImageDecoder::decodeSubset(SkBitmap*, const SkIRect&, SkColorType) {
58 return false;
59 }
60
61 SkImageDecoder::Format SkImageDecoder::getFormat() const { 46 SkImageDecoder::Format SkImageDecoder::getFormat() const {
62 return kUnknown_Format; 47 return kUnknown_Format;
63 } 48 }
64 49
65 SkImageDecoder::Format SkImageDecoder::GetStreamFormat(SkStreamRewindable*) { 50 SkImageDecoder::Format SkImageDecoder::GetStreamFormat(SkStreamRewindable*) {
66 return kUnknown_Format; 51 return kUnknown_Format;
67 } 52 }
68 53
69 const char* SkImageDecoder::GetFormatName(Format) { 54 const char* SkImageDecoder::GetFormatName(Format) {
70 return nullptr; 55 return nullptr;
71 } 56 }
72 57
73 SkImageDecoder::Peeker* SkImageDecoder::setPeeker(Peeker*) { 58 SkImageDecoder::Peeker* SkImageDecoder::setPeeker(Peeker*) {
74 return nullptr; 59 return nullptr;
75 } 60 }
76 61
77 SkBitmap::Allocator* SkImageDecoder::setAllocator(SkBitmap::Allocator*) { 62 SkBitmap::Allocator* SkImageDecoder::setAllocator(SkBitmap::Allocator*) {
78 return nullptr; 63 return nullptr;
79 } 64 }
80 65
81 void SkImageDecoder::setSampleSize(int) {} 66 void SkImageDecoder::setSampleSize(int) {}
82 67
83 bool SkImageDecoder::cropBitmap(SkBitmap*, SkBitmap*, int, int, int, int, int,
84 int, int) {
85 return false;
86 }
87
88 bool SkImageDecoder::allocPixelRef(SkBitmap*, SkColorTable*) const { 68 bool SkImageDecoder::allocPixelRef(SkBitmap*, SkColorTable*) const {
89 return false; 69 return false;
90 } 70 }
91 71
92 ///////////////////////////////////////////////////////////////////////// 72 /////////////////////////////////////////////////////////////////////////
93 73
94 // Empty implementation for SkMovie. 74 // Empty implementation for SkMovie.
95 75
96 SkMovie* SkMovie::DecodeStream(SkStreamRewindable* stream) { 76 SkMovie* SkMovie::DecodeStream(SkStreamRewindable* stream) {
97 return nullptr; 77 return nullptr;
(...skipping 29 matching lines...) Expand all
127 } 107 }
128 108
129 SkData* SkImageEncoder::encodeData(const SkBitmap&, int) { 109 SkData* SkImageEncoder::encodeData(const SkBitmap&, int) {
130 return nullptr; 110 return nullptr;
131 } 111 }
132 112
133 bool SkImageEncoder::encodeFile(const char file[], const SkBitmap& bm, int quali ty) { 113 bool SkImageEncoder::encodeFile(const char file[], const SkBitmap& bm, int quali ty) {
134 return false; 114 return false;
135 } 115 }
136 ///////////////////////////////////////////////////////////////////////// 116 /////////////////////////////////////////////////////////////////////////
OLDNEW
« no previous file with comments | « src/images/SkImageDecoder_libwebp.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698