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 23 matching lines...) Expand all Loading... |
34 #include "SkTextBlob.h" | 34 #include "SkTextBlob.h" |
35 #include "SkTextFormatParams.h" | 35 #include "SkTextFormatParams.h" |
36 #include "SkTLazy.h" | 36 #include "SkTLazy.h" |
37 #include "SkTraceEvent.h" | 37 #include "SkTraceEvent.h" |
38 | 38 |
39 #include <new> | 39 #include <new> |
40 | 40 |
41 #if SK_SUPPORT_GPU | 41 #if SK_SUPPORT_GPU |
42 #include "GrContext.h" | 42 #include "GrContext.h" |
43 #include "GrRenderTarget.h" | 43 #include "GrRenderTarget.h" |
44 #include "SkGr.h" | 44 #include "SkGrPriv.h" |
45 #endif | 45 #endif |
46 | 46 |
47 #define RETURN_ON_NULL(ptr) do { if (nullptr == (ptr)) return; } while (0) | 47 #define RETURN_ON_NULL(ptr) do { if (nullptr == (ptr)) return; } while (0) |
48 | 48 |
49 //#define SK_SUPPORT_PRECHECK_CLIPRECT | 49 //#define SK_SUPPORT_PRECHECK_CLIPRECT |
50 | 50 |
51 /* | 51 /* |
52 * Return true if the drawing this rect would hit every pixels in the canvas. | 52 * Return true if the drawing this rect would hit every pixels in the canvas. |
53 * | 53 * |
54 * Returns false if | 54 * Returns false if |
(...skipping 3064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3119 | 3119 |
3120 SkAutoCanvasMatrixPaint::~SkAutoCanvasMatrixPaint() { | 3120 SkAutoCanvasMatrixPaint::~SkAutoCanvasMatrixPaint() { |
3121 fCanvas->restoreToCount(fSaveCount); | 3121 fCanvas->restoreToCount(fSaveCount); |
3122 } | 3122 } |
3123 | 3123 |
3124 #ifdef SK_SUPPORT_LEGACY_NEW_SURFACE_API | 3124 #ifdef SK_SUPPORT_LEGACY_NEW_SURFACE_API |
3125 SkSurface* SkCanvas::newSurface(const SkImageInfo& info, const SkSurfaceProps* p
rops) { | 3125 SkSurface* SkCanvas::newSurface(const SkImageInfo& info, const SkSurfaceProps* p
rops) { |
3126 return this->makeSurface(info, props).release(); | 3126 return this->makeSurface(info, props).release(); |
3127 } | 3127 } |
3128 #endif | 3128 #endif |
OLD | NEW |