| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 "SkBBoxHierarchy.h" | 8 #include "SkBBoxHierarchy.h" |
| 9 #include "SkBitmapDevice.h" | 9 #include "SkBitmapDevice.h" |
| 10 #include "SkCanvas.h" | 10 #include "SkCanvas.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 } | 70 } |
| 71 virtual void lockPixels() SK_OVERRIDE { nothing_to_do(); } | 71 virtual void lockPixels() SK_OVERRIDE { nothing_to_do(); } |
| 72 virtual void unlockPixels() SK_OVERRIDE { nothing_to_do(); } | 72 virtual void unlockPixels() SK_OVERRIDE { nothing_to_do(); } |
| 73 virtual bool allowImageFilter(const SkImageFilter*) SK_OVERRIDE { return fal
se; } | 73 virtual bool allowImageFilter(const SkImageFilter*) SK_OVERRIDE { return fal
se; } |
| 74 virtual bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE { return
false; } | 74 virtual bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE { return
false; } |
| 75 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, const SkImag
eFilter::Context&, | 75 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, const SkImag
eFilter::Context&, |
| 76 SkBitmap* result, SkIPoint* offset) SK_OVERRIDE { | 76 SkBitmap* result, SkIPoint* offset) SK_OVERRIDE { |
| 77 return false; | 77 return false; |
| 78 } | 78 } |
| 79 | 79 |
| 80 virtual void clear(SkColor color) SK_OVERRIDE { |
| 81 nothing_to_do(); |
| 82 } |
| 83 |
| 80 virtual void drawPaint(const SkDraw&, const SkPaint& paint) SK_OVERRIDE { | 84 virtual void drawPaint(const SkDraw&, const SkPaint& paint) SK_OVERRIDE { |
| 81 this->addBitmapFromPaint(paint); | 85 this->addBitmapFromPaint(paint); |
| 82 } | 86 } |
| 83 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun
t, | 87 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun
t, |
| 84 const SkPoint[], const SkPaint& paint) SK_OVERRIDE { | 88 const SkPoint[], const SkPaint& paint) SK_OVERRIDE { |
| 85 this->addBitmapFromPaint(paint); | 89 this->addBitmapFromPaint(paint); |
| 86 } | 90 } |
| 87 virtual void drawRect(const SkDraw&, const SkRect&, | 91 virtual void drawRect(const SkDraw&, const SkRect&, |
| 88 const SkPaint& paint) SK_OVERRIDE { | 92 const SkPaint& paint) SK_OVERRIDE { |
| 89 this->addBitmapFromPaint(paint); | 93 this->addBitmapFromPaint(paint); |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 if (pict->fBBH.get()) { | 232 if (pict->fBBH.get()) { |
| 229 byteCount += pict->fBBH->bytesUsed(); | 233 byteCount += pict->fBBH->bytesUsed(); |
| 230 } | 234 } |
| 231 MeasureRecords visitor; | 235 MeasureRecords visitor; |
| 232 for (unsigned curOp = 0; curOp < pict->fRecord->count(); curOp++) { | 236 for (unsigned curOp = 0; curOp < pict->fRecord->count(); curOp++) { |
| 233 byteCount += pict->fRecord->visit<size_t>(curOp, visitor); | 237 byteCount += pict->fRecord->visit<size_t>(curOp, visitor); |
| 234 } | 238 } |
| 235 | 239 |
| 236 return byteCount; | 240 return byteCount; |
| 237 } | 241 } |
| OLD | NEW |