| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 "SkColorFilter.h" | 8 #include "SkColorFilter.h" |
| 9 #include "SkDevice.h" | 9 #include "SkDevice.h" |
| 10 #include "SkDraw.h" | 10 #include "SkDraw.h" |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 } | 251 } |
| 252 | 252 |
| 253 bool SkBaseDevice::onWritePixels(const SkImageInfo&, const void*, size_t, int, i
nt) { | 253 bool SkBaseDevice::onWritePixels(const SkImageInfo&, const void*, size_t, int, i
nt) { |
| 254 return false; | 254 return false; |
| 255 } | 255 } |
| 256 | 256 |
| 257 bool SkBaseDevice::onReadPixels(const SkImageInfo&, void*, size_t, int x, int y)
{ | 257 bool SkBaseDevice::onReadPixels(const SkImageInfo&, void*, size_t, int x, int y)
{ |
| 258 return false; | 258 return false; |
| 259 } | 259 } |
| 260 | 260 |
| 261 bool SkBaseDevice::EXPERIMENTAL_drawPicture(SkCanvas*, const SkPicture*, const S
kMatrix*, | |
| 262 const SkPaint*) { | |
| 263 // The base class doesn't perform any accelerated picture rendering | |
| 264 return false; | |
| 265 } | |
| 266 | |
| 267 bool SkBaseDevice::accessPixels(SkPixmap* pmap) { | 261 bool SkBaseDevice::accessPixels(SkPixmap* pmap) { |
| 268 SkPixmap tempStorage; | 262 SkPixmap tempStorage; |
| 269 if (nullptr == pmap) { | 263 if (nullptr == pmap) { |
| 270 pmap = &tempStorage; | 264 pmap = &tempStorage; |
| 271 } | 265 } |
| 272 return this->onAccessPixels(pmap); | 266 return this->onAccessPixels(pmap); |
| 273 } | 267 } |
| 274 | 268 |
| 275 bool SkBaseDevice::peekPixels(SkPixmap* pmap) { | 269 bool SkBaseDevice::peekPixels(SkPixmap* pmap) { |
| 276 SkPixmap tempStorage; | 270 SkPixmap tempStorage; |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 | 538 |
| 545 // Also log filter quality independent scale factor. | 539 // Also log filter quality independent scale factor. |
| 546 SK_HISTOGRAM_ENUMERATION("DrawScaleFactor.AnyFilterQuality", scaleFactor, | 540 SK_HISTOGRAM_ENUMERATION("DrawScaleFactor.AnyFilterQuality", scaleFactor, |
| 547 kLast_ScaleFactor + 1); | 541 kLast_ScaleFactor + 1); |
| 548 | 542 |
| 549 // Also log an overall histogram of filter quality. | 543 // Also log an overall histogram of filter quality. |
| 550 SK_HISTOGRAM_ENUMERATION("FilterQuality", filterQuality, kLast_SkFilterQuali
ty + 1); | 544 SK_HISTOGRAM_ENUMERATION("FilterQuality", filterQuality, kLast_SkFilterQuali
ty + 1); |
| 551 #endif | 545 #endif |
| 552 } | 546 } |
| 553 | 547 |
| OLD | NEW |