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

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

Issue 1040453002: Add SkPngChunkReader. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update SkImageDecoder_empty 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_libpng.cpp ('k') | tests/CodexTest.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 #include "SkStream.h"
15 15
16 class SkColorTable; 16 class SkColorTable;
17 class SkPngChunkReader;
17 18
18 // Empty implementations for SkImageDecoder. 19 // Empty implementations for SkImageDecoder.
19 20
20 SkImageDecoder::SkImageDecoder() {} 21 SkImageDecoder::SkImageDecoder() {}
21 22
22 SkImageDecoder::~SkImageDecoder() {} 23 SkImageDecoder::~SkImageDecoder() {}
23 24
24 SkImageDecoder* SkImageDecoder::Factory(SkStreamRewindable*) { 25 SkImageDecoder* SkImageDecoder::Factory(SkStreamRewindable*) {
25 return nullptr; 26 return nullptr;
26 } 27 }
(...skipping 26 matching lines...) Expand all
53 } 54 }
54 55
55 SkImageDecoder::Format SkImageDecoder::GetStreamFormat(SkStreamRewindable*) { 56 SkImageDecoder::Format SkImageDecoder::GetStreamFormat(SkStreamRewindable*) {
56 return kUnknown_Format; 57 return kUnknown_Format;
57 } 58 }
58 59
59 const char* SkImageDecoder::GetFormatName(Format) { 60 const char* SkImageDecoder::GetFormatName(Format) {
60 return nullptr; 61 return nullptr;
61 } 62 }
62 63
63 SkImageDecoder::Peeker* SkImageDecoder::setPeeker(Peeker*) { 64 SkPngChunkReader* SkImageDecoder::setPeeker(SkPngChunkReader*) {
64 return nullptr; 65 return nullptr;
65 } 66 }
66 67
67 SkBitmap::Allocator* SkImageDecoder::setAllocator(SkBitmap::Allocator*) { 68 SkBitmap::Allocator* SkImageDecoder::setAllocator(SkBitmap::Allocator*) {
68 return nullptr; 69 return nullptr;
69 } 70 }
70 71
71 void SkImageDecoder::setSampleSize(int) {} 72 void SkImageDecoder::setSampleSize(int) {}
72 73
73 bool SkImageDecoder::allocPixelRef(SkBitmap*, SkColorTable*) const { 74 bool SkImageDecoder::allocPixelRef(SkBitmap*, SkColorTable*) const {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 } 113 }
113 114
114 SkData* SkImageEncoder::encodeData(const SkBitmap&, int) { 115 SkData* SkImageEncoder::encodeData(const SkBitmap&, int) {
115 return nullptr; 116 return nullptr;
116 } 117 }
117 118
118 bool SkImageEncoder::encodeFile(const char file[], const SkBitmap& bm, int quali ty) { 119 bool SkImageEncoder::encodeFile(const char file[], const SkBitmap& bm, int quali ty) {
119 return false; 120 return false;
120 } 121 }
121 ///////////////////////////////////////////////////////////////////////// 122 /////////////////////////////////////////////////////////////////////////
OLDNEW
« no previous file with comments | « src/images/SkImageDecoder_libpng.cpp ('k') | tests/CodexTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698