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

Side by Side Diff: src/core/SkImageGenerator.cpp

Issue 1026923002: change default impl to facilitate transition in blink/chrome (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | 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 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkImageGenerator.h" 8 #include "SkImageGenerator.h"
9 9
10 #ifdef SK_SUPPORT_LEGACY_BOOL_ONGETINFO 10 #ifdef SK_SUPPORT_LEGACY_BOOL_ONGETINFO
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 return this->onGetYUV8Planes(sizes, planes, rowBytes); 116 return this->onGetYUV8Planes(sizes, planes, rowBytes);
117 } 117 }
118 118
119 //////////////////////////////////////////////////////////////////////////////// ///////////// 119 //////////////////////////////////////////////////////////////////////////////// /////////////
120 120
121 SkData* SkImageGenerator::onRefEncodedData() { 121 SkData* SkImageGenerator::onRefEncodedData() {
122 return NULL; 122 return NULL;
123 } 123 }
124 124
125 #ifdef SK_SUPPORT_LEGACY_BOOL_ONGETINFO 125 #ifdef SK_SUPPORT_LEGACY_BOOL_ONGETINFO
126 bool SkImageGenerator::onGetInfo(SkImageInfo*) { 126 bool SkImageGenerator::onGetInfo(SkImageInfo* info) {
127 return false; 127 if (info) {
128 *info = fInfo;
129 }
130 return true;
128 } 131 }
129 #endif 132 #endif
130 133
131 #ifdef SK_SUPPORT_LEGACY_OPTIONLESS_GET_PIXELS 134 #ifdef SK_SUPPORT_LEGACY_OPTIONLESS_GET_PIXELS
132 SkImageGenerator::Result SkImageGenerator::onGetPixels(const SkImageInfo&, void* , size_t, 135 SkImageGenerator::Result SkImageGenerator::onGetPixels(const SkImageInfo&, void* , size_t,
133 SkPMColor*, int*) { 136 SkPMColor*, int*) {
134 return kUnimplemented; 137 return kUnimplemented;
135 } 138 }
136 #endif 139 #endif
137 140
138 SkImageGenerator::Result SkImageGenerator::onGetPixels(const SkImageInfo& info, void* dst, 141 SkImageGenerator::Result SkImageGenerator::onGetPixels(const SkImageInfo& info, void* dst,
139 size_t rb, const Options& options, 142 size_t rb, const Options& options,
140 SkPMColor* colors, int* c olorCount) { 143 SkPMColor* colors, int* c olorCount) {
141 #ifdef SK_SUPPORT_LEGACY_OPTIONLESS_GET_PIXELS 144 #ifdef SK_SUPPORT_LEGACY_OPTIONLESS_GET_PIXELS
142 return this->onGetPixels(info, dst, rb, colors, colorCount); 145 return this->onGetPixels(info, dst, rb, colors, colorCount);
143 #else 146 #else
144 return kUnimplemented; 147 return kUnimplemented;
145 #endif 148 #endif
146 } 149 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698