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

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

Issue 1201233002: remove SK_SUPPORT_LEGACY_OPTIONLESS_GET_PIXELS (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 6 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 | « include/core/SkImageGenerator.h ('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 * 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 SkImageGenerator::Result SkImageGenerator::getPixels(const SkImageInfo& info, vo id* pixels, 10 SkImageGenerator::Result SkImageGenerator::getPixels(const SkImageInfo& info, vo id* pixels,
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 } 105 }
106 return this->onGetYUV8Planes(sizes, planes, rowBytes); 106 return this->onGetYUV8Planes(sizes, planes, rowBytes);
107 } 107 }
108 108
109 //////////////////////////////////////////////////////////////////////////////// ///////////// 109 //////////////////////////////////////////////////////////////////////////////// /////////////
110 110
111 SkData* SkImageGenerator::onRefEncodedData() { 111 SkData* SkImageGenerator::onRefEncodedData() {
112 return NULL; 112 return NULL;
113 } 113 }
114 114
115 #ifdef SK_SUPPORT_LEGACY_OPTIONLESS_GET_PIXELS
116 SkImageGenerator::Result SkImageGenerator::onGetPixels(const SkImageInfo&, void* , size_t,
117 SkPMColor*, int*) {
118 return kUnimplemented;
119 }
120 #endif
121
122 SkImageGenerator::Result SkImageGenerator::onGetPixels(const SkImageInfo& info, void* dst, 115 SkImageGenerator::Result SkImageGenerator::onGetPixels(const SkImageInfo& info, void* dst,
123 size_t rb, const Options& options, 116 size_t rb, const Options& options,
124 SkPMColor* colors, int* c olorCount) { 117 SkPMColor* colors, int* c olorCount) {
125 #ifdef SK_SUPPORT_LEGACY_OPTIONLESS_GET_PIXELS
126 return this->onGetPixels(info, dst, rb, colors, colorCount);
127 #else
128 return kUnimplemented; 118 return kUnimplemented;
129 #endif
130 } 119 }
OLDNEW
« no previous file with comments | « include/core/SkImageGenerator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698