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 "SkCanvasPriv.h" | 8 #include "SkCanvasPriv.h" |
9 #include "SkClipStack.h" | 9 #include "SkClipStack.h" |
10 #include "SkDebugCanvas.h" | 10 #include "SkDebugCanvas.h" |
11 #include "SkDrawCommand.h" | 11 #include "SkDrawCommand.h" |
12 #include "SkPaintFilterCanvas.h" | 12 #include "SkPaintFilterCanvas.h" |
13 #include "SkTextBlob.h" | 13 #include "SkTextBlob.h" |
14 | 14 |
15 #if SK_SUPPORT_GPU | 15 #if SK_SUPPORT_GPU |
16 #include "GrAuditTrail.h" | 16 #include "GrAuditTrail.h" |
17 #include "GrContext.h" | 17 #include "GrContext.h" |
| 18 #include "GrRenderTargetContextPriv.h" |
18 #include "GrRenderTarget.h" | 19 #include "GrRenderTarget.h" |
19 #include "SkGpuDevice.h" | 20 #include "SkGpuDevice.h" |
20 #endif | 21 #endif |
21 | 22 |
22 #define SKDEBUGCANVAS_VERSION 1 | 23 #define SKDEBUGCANVAS_VERSION 1 |
23 #define SKDEBUGCANVAS_ATTRIBUTE_VERSION "version" | 24 #define SKDEBUGCANVAS_ATTRIBUTE_VERSION "version" |
24 #define SKDEBUGCANVAS_ATTRIBUTE_COMMANDS "commands" | 25 #define SKDEBUGCANVAS_ATTRIBUTE_COMMANDS "commands" |
25 #define SKDEBUGCANVAS_ATTRIBUTE_AUDITTRAIL "auditTrail" | 26 #define SKDEBUGCANVAS_ATTRIBUTE_AUDITTRAIL "auditTrail" |
26 | 27 |
27 class DebugPaintFilterCanvas : public SkPaintFilterCanvas { | 28 class DebugPaintFilterCanvas : public SkPaintFilterCanvas { |
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
818 } | 819 } |
819 | 820 |
820 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { | 821 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { |
821 if (fCalledAddStackData) { | 822 if (fCalledAddStackData) { |
822 fClipStackData.appendf("<br>"); | 823 fClipStackData.appendf("<br>"); |
823 addPathData(devPath, "pathOut"); | 824 addPathData(devPath, "pathOut"); |
824 return true; | 825 return true; |
825 } | 826 } |
826 return false; | 827 return false; |
827 } | 828 } |
OLD | NEW |