| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2008 The Android Open Source Project | 3 * Copyright 2008 The Android Open Source Project |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #include "SkCanvas.h" | 10 #include "SkCanvas.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "SkSurface_Base.h" | 23 #include "SkSurface_Base.h" |
| 24 #include "SkTemplates.h" | 24 #include "SkTemplates.h" |
| 25 #include "SkTextFormatParams.h" | 25 #include "SkTextFormatParams.h" |
| 26 #include "SkTLazy.h" | 26 #include "SkTLazy.h" |
| 27 #include "SkUtils.h" | 27 #include "SkUtils.h" |
| 28 | 28 |
| 29 #if SK_SUPPORT_GPU | 29 #if SK_SUPPORT_GPU |
| 30 #include "GrRenderTarget.h" | 30 #include "GrRenderTarget.h" |
| 31 #endif | 31 #endif |
| 32 | 32 |
| 33 SK_DEFINE_INST_COUNT(SkBounder) | |
| 34 SK_DEFINE_INST_COUNT(SkCanvas) | |
| 35 SK_DEFINE_INST_COUNT(SkDrawFilter) | |
| 36 | |
| 37 // experimental for faster tiled drawing... | 33 // experimental for faster tiled drawing... |
| 38 //#define SK_ENABLE_CLIP_QUICKREJECT | 34 //#define SK_ENABLE_CLIP_QUICKREJECT |
| 39 | 35 |
| 40 //#define SK_TRACE_SAVERESTORE | 36 //#define SK_TRACE_SAVERESTORE |
| 41 | 37 |
| 42 #ifdef SK_TRACE_SAVERESTORE | 38 #ifdef SK_TRACE_SAVERESTORE |
| 43 static int gLayerCounter; | 39 static int gLayerCounter; |
| 44 static void inc_layer() { ++gLayerCounter; printf("----- inc layer %d\n", gL
ayerCounter); } | 40 static void inc_layer() { ++gLayerCounter; printf("----- inc layer %d\n", gL
ayerCounter); } |
| 45 static void dec_layer() { --gLayerCounter; printf("----- dec layer %d\n", gL
ayerCounter); } | 41 static void dec_layer() { --gLayerCounter; printf("----- dec layer %d\n", gL
ayerCounter); } |
| 46 | 42 |
| (...skipping 2177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2224 return *paint; | 2220 return *paint; |
| 2225 } | 2221 } |
| 2226 | 2222 |
| 2227 const SkRegion& SkCanvas::LayerIter::clip() const { return fImpl->getClip(); } | 2223 const SkRegion& SkCanvas::LayerIter::clip() const { return fImpl->getClip(); } |
| 2228 int SkCanvas::LayerIter::x() const { return fImpl->getX(); } | 2224 int SkCanvas::LayerIter::x() const { return fImpl->getX(); } |
| 2229 int SkCanvas::LayerIter::y() const { return fImpl->getY(); } | 2225 int SkCanvas::LayerIter::y() const { return fImpl->getY(); } |
| 2230 | 2226 |
| 2231 /////////////////////////////////////////////////////////////////////////////// | 2227 /////////////////////////////////////////////////////////////////////////////// |
| 2232 | 2228 |
| 2233 SkCanvas::ClipVisitor::~ClipVisitor() { } | 2229 SkCanvas::ClipVisitor::~ClipVisitor() { } |
| OLD | NEW |