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

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

Issue 1316233002: Style Change: NULL->nullptr (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-27 (Thursday) 10:25:06 EDT Created 5 years, 3 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/SkImageDecoder_WIC.cpp ('k') | src/ports/SkImageGenerator_none.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 17
18 // Empty implementations for SkImageDecoder. 18 // Empty implementations for SkImageDecoder.
19 19
20 SkImageDecoder::SkImageDecoder() {} 20 SkImageDecoder::SkImageDecoder() {}
21 21
22 SkImageDecoder::~SkImageDecoder() {} 22 SkImageDecoder::~SkImageDecoder() {}
23 23
24 SkImageDecoder* SkImageDecoder::Factory(SkStreamRewindable*) { 24 SkImageDecoder* SkImageDecoder::Factory(SkStreamRewindable*) {
25 return NULL; 25 return nullptr;
26 } 26 }
27 27
28 void SkImageDecoder::copyFieldsToOther(SkImageDecoder* ) {} 28 void SkImageDecoder::copyFieldsToOther(SkImageDecoder* ) {}
29 29
30 bool SkImageDecoder::DecodeFile(const char[], SkBitmap*, SkColorType, Mode, Form at*) { 30 bool SkImageDecoder::DecodeFile(const char[], SkBitmap*, SkColorType, Mode, Form at*) {
31 return false; 31 return false;
32 } 32 }
33 33
34 SkImageDecoder::Result SkImageDecoder::decode(SkStream*, SkBitmap*, SkColorType, Mode) { 34 SkImageDecoder::Result SkImageDecoder::decode(SkStream*, SkBitmap*, SkColorType, Mode) {
35 return kFailure; 35 return kFailure;
(...skipping 24 matching lines...) Expand all
60 60
61 SkImageDecoder::Format SkImageDecoder::getFormat() const { 61 SkImageDecoder::Format SkImageDecoder::getFormat() const {
62 return kUnknown_Format; 62 return kUnknown_Format;
63 } 63 }
64 64
65 SkImageDecoder::Format SkImageDecoder::GetStreamFormat(SkStreamRewindable*) { 65 SkImageDecoder::Format SkImageDecoder::GetStreamFormat(SkStreamRewindable*) {
66 return kUnknown_Format; 66 return kUnknown_Format;
67 } 67 }
68 68
69 const char* SkImageDecoder::GetFormatName(Format) { 69 const char* SkImageDecoder::GetFormatName(Format) {
70 return NULL; 70 return nullptr;
71 } 71 }
72 72
73 SkImageDecoder::Peeker* SkImageDecoder::setPeeker(Peeker*) { 73 SkImageDecoder::Peeker* SkImageDecoder::setPeeker(Peeker*) {
74 return NULL; 74 return nullptr;
75 } 75 }
76 76
77 SkBitmap::Allocator* SkImageDecoder::setAllocator(SkBitmap::Allocator*) { 77 SkBitmap::Allocator* SkImageDecoder::setAllocator(SkBitmap::Allocator*) {
78 return NULL; 78 return nullptr;
79 } 79 }
80 80
81 void SkImageDecoder::setSampleSize(int) {} 81 void SkImageDecoder::setSampleSize(int) {}
82 82
83 bool SkImageDecoder::cropBitmap(SkBitmap*, SkBitmap*, int, int, int, int, int, 83 bool SkImageDecoder::cropBitmap(SkBitmap*, SkBitmap*, int, int, int, int, int,
84 int, int) { 84 int, int) {
85 return false; 85 return false;
86 } 86 }
87 87
88 bool SkImageDecoder::allocPixelRef(SkBitmap*, SkColorTable*) const { 88 bool SkImageDecoder::allocPixelRef(SkBitmap*, SkColorTable*) const {
89 return false; 89 return false;
90 } 90 }
91 91
92 ///////////////////////////////////////////////////////////////////////// 92 /////////////////////////////////////////////////////////////////////////
93 93
94 // Empty implementation for SkMovie. 94 // Empty implementation for SkMovie.
95 95
96 SkMovie* SkMovie::DecodeStream(SkStreamRewindable* stream) { 96 SkMovie* SkMovie::DecodeStream(SkStreamRewindable* stream) {
97 return NULL; 97 return nullptr;
98 } 98 }
99 99
100 ///////////////////////////////////////////////////////////////////////// 100 /////////////////////////////////////////////////////////////////////////
101 101
102 // Empty implementations for SkImageEncoder. 102 // Empty implementations for SkImageEncoder.
103 103
104 SkImageEncoder* SkImageEncoder::Create(Type t) { 104 SkImageEncoder* SkImageEncoder::Create(Type t) {
105 return NULL; 105 return nullptr;
106 } 106 }
107 107
108 bool SkImageEncoder::EncodeFile(const char file[], const SkBitmap&, Type, int qu ality) { 108 bool SkImageEncoder::EncodeFile(const char file[], const SkBitmap&, Type, int qu ality) {
109 return false; 109 return false;
110 } 110 }
111 111
112 bool SkImageEncoder::EncodeStream(SkWStream*, const SkBitmap&, SkImageEncoder::T ype, int) { 112 bool SkImageEncoder::EncodeStream(SkWStream*, const SkBitmap&, SkImageEncoder::T ype, int) {
113 return false; 113 return false;
114 } 114 }
115 115
116 SkData* SkImageEncoder::EncodeData(const SkBitmap&, Type, int quality) { 116 SkData* SkImageEncoder::EncodeData(const SkBitmap&, Type, int quality) {
117 return NULL; 117 return nullptr;
118 } 118 }
119 119
120 bool SkImageEncoder::encodeStream(SkWStream*, const SkBitmap&, int) { 120 bool SkImageEncoder::encodeStream(SkWStream*, const SkBitmap&, int) {
121 return false; 121 return false;
122 } 122 }
123 123
124 SkData* SkImageEncoder::encodeData(const SkBitmap&, int) { 124 SkData* SkImageEncoder::encodeData(const SkBitmap&, int) {
125 return NULL; 125 return nullptr;
126 } 126 }
127 127
128 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) {
129 return false; 129 return false;
130 } 130 }
131 ///////////////////////////////////////////////////////////////////////// 131 /////////////////////////////////////////////////////////////////////////
OLDNEW
« no previous file with comments | « src/ports/SkImageDecoder_WIC.cpp ('k') | src/ports/SkImageGenerator_none.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698