| 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 "SkCanvas.h" | 9 #include "SkCanvas.h" |
| 9 #include "SkCanvasPriv.h" | 10 #include "SkCanvasPriv.h" |
| 10 #include "SkBitmapDevice.h" | 11 #include "SkClipStack.h" |
| 11 #include "SkColorFilter.h" | 12 #include "SkColorFilter.h" |
| 13 #include "SkDevice.h" |
| 12 #include "SkDraw.h" | 14 #include "SkDraw.h" |
| 13 #include "SkDrawable.h" | 15 #include "SkDrawable.h" |
| 14 #include "SkDrawFilter.h" | 16 #include "SkDrawFilter.h" |
| 15 #include "SkDrawLooper.h" | 17 #include "SkDrawLooper.h" |
| 16 #include "SkErrorInternals.h" | 18 #include "SkErrorInternals.h" |
| 17 #include "SkImage.h" | 19 #include "SkImage.h" |
| 18 #include "SkMetaData.h" | 20 #include "SkMetaData.h" |
| 19 #include "SkNinePatchIter.h" | 21 #include "SkNinePatchIter.h" |
| 20 #include "SkPaintPriv.h" | 22 #include "SkPaintPriv.h" |
| 21 #include "SkPathOps.h" | |
| 22 #include "SkPatchUtils.h" | 23 #include "SkPatchUtils.h" |
| 23 #include "SkPicture.h" | 24 #include "SkPicture.h" |
| 24 #include "SkRasterClip.h" | 25 #include "SkRasterClip.h" |
| 25 #include "SkReadPixelsRec.h" | 26 #include "SkReadPixelsRec.h" |
| 26 #include "SkRRect.h" | 27 #include "SkRRect.h" |
| 27 #include "SkSmallAllocator.h" | 28 #include "SkSmallAllocator.h" |
| 28 #include "SkSurface_Base.h" | 29 #include "SkSurface_Base.h" |
| 29 #include "SkTemplates.h" | |
| 30 #include "SkTextBlob.h" | 30 #include "SkTextBlob.h" |
| 31 #include "SkTextFormatParams.h" | 31 #include "SkTextFormatParams.h" |
| 32 #include "SkTLazy.h" | 32 #include "SkTLazy.h" |
| 33 #include "SkTraceEvent.h" | 33 #include "SkTraceEvent.h" |
| 34 #include "SkUtils.h" | 34 |
| 35 #include <new> |
| 35 | 36 |
| 36 #if SK_SUPPORT_GPU | 37 #if SK_SUPPORT_GPU |
| 37 #include "GrRenderTarget.h" | 38 #include "GrRenderTarget.h" |
| 38 #endif | 39 #endif |
| 39 | 40 |
| 40 /* | 41 /* |
| 41 * Return true if the drawing this rect would hit every pixels in the canvas. | 42 * Return true if the drawing this rect would hit every pixels in the canvas. |
| 42 * | 43 * |
| 43 * Returns false if | 44 * Returns false if |
| 44 * - rect does not contain the canvas' bounds | 45 * - rect does not contain the canvas' bounds |
| (...skipping 2809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2854 } | 2855 } |
| 2855 | 2856 |
| 2856 if (matrix) { | 2857 if (matrix) { |
| 2857 canvas->concat(*matrix); | 2858 canvas->concat(*matrix); |
| 2858 } | 2859 } |
| 2859 } | 2860 } |
| 2860 | 2861 |
| 2861 SkAutoCanvasMatrixPaint::~SkAutoCanvasMatrixPaint() { | 2862 SkAutoCanvasMatrixPaint::~SkAutoCanvasMatrixPaint() { |
| 2862 fCanvas->restoreToCount(fSaveCount); | 2863 fCanvas->restoreToCount(fSaveCount); |
| 2863 } | 2864 } |
| OLD | NEW |