| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2008 The Android Open Source Project | 2 * Copyright 2008 The Android Open Source Project |
| 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 "SkBitmapDevice.h" | 8 #include "SkBitmapDevice.h" |
| 9 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
| 10 #include "SkCanvasPriv.h" | 10 #include "SkCanvasPriv.h" |
| (...skipping 3013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3024 } | 3024 } |
| 3025 if (this->quickReject(bounds)) { | 3025 if (this->quickReject(bounds)) { |
| 3026 return; | 3026 return; |
| 3027 } | 3027 } |
| 3028 } | 3028 } |
| 3029 | 3029 |
| 3030 SkAutoCanvasMatrixPaint acmp(this, matrix, paint, picture->cullRect()); | 3030 SkAutoCanvasMatrixPaint acmp(this, matrix, paint, picture->cullRect()); |
| 3031 picture->playback(this); | 3031 picture->playback(this); |
| 3032 } | 3032 } |
| 3033 | 3033 |
| 3034 void SkCanvas::drawShadowedPicture(const SkPicture* picture, sk_sp<SkLights> lig
hts) { |
| 3035 RETURN_ON_NULL(picture); |
| 3036 |
| 3037 TRACE_EVENT0("disabled-by-default-skia", "SkCanvas::drawShadowedPicture()"); |
| 3038 |
| 3039 this->onDrawShadowedPicture(picture, lights); |
| 3040 } |
| 3041 |
| 3042 void SkCanvas::onDrawShadowedPicture(const SkPicture* picture, sk_sp<SkLights> l
ights) { |
| 3043 this->onDrawPicture(picture, nullptr, nullptr); |
| 3044 } |
| 3045 |
| 3034 /////////////////////////////////////////////////////////////////////////////// | 3046 /////////////////////////////////////////////////////////////////////////////// |
| 3035 /////////////////////////////////////////////////////////////////////////////// | 3047 /////////////////////////////////////////////////////////////////////////////// |
| 3036 | 3048 |
| 3037 SkCanvas::LayerIter::LayerIter(SkCanvas* canvas, bool skipEmptyClips) { | 3049 SkCanvas::LayerIter::LayerIter(SkCanvas* canvas, bool skipEmptyClips) { |
| 3038 static_assert(sizeof(fStorage) >= sizeof(SkDrawIter), "fStorage_too_small"); | 3050 static_assert(sizeof(fStorage) >= sizeof(SkDrawIter), "fStorage_too_small"); |
| 3039 | 3051 |
| 3040 SkASSERT(canvas); | 3052 SkASSERT(canvas); |
| 3041 | 3053 |
| 3042 fImpl = new (fStorage) SkDrawIter(canvas, skipEmptyClips); | 3054 fImpl = new (fStorage) SkDrawIter(canvas, skipEmptyClips); |
| 3043 fDone = !fImpl->next(); | 3055 fDone = !fImpl->next(); |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3134 | 3146 |
| 3135 SkAutoCanvasMatrixPaint::~SkAutoCanvasMatrixPaint() { | 3147 SkAutoCanvasMatrixPaint::~SkAutoCanvasMatrixPaint() { |
| 3136 fCanvas->restoreToCount(fSaveCount); | 3148 fCanvas->restoreToCount(fSaveCount); |
| 3137 } | 3149 } |
| 3138 | 3150 |
| 3139 #ifdef SK_SUPPORT_LEGACY_NEW_SURFACE_API | 3151 #ifdef SK_SUPPORT_LEGACY_NEW_SURFACE_API |
| 3140 SkSurface* SkCanvas::newSurface(const SkImageInfo& info, const SkSurfaceProps* p
rops) { | 3152 SkSurface* SkCanvas::newSurface(const SkImageInfo& info, const SkSurfaceProps* p
rops) { |
| 3141 return this->makeSurface(info, props).release(); | 3153 return this->makeSurface(info, props).release(); |
| 3142 } | 3154 } |
| 3143 #endif | 3155 #endif |
| OLD | NEW |