OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 #ifndef SkRecords_DEFINED | 8 #ifndef SkRecords_DEFINED |
9 #define SkRecords_DEFINED | 9 #define SkRecords_DEFINED |
10 | 10 |
11 #include "SkData.h" | 11 #include "SkData.h" |
12 #include "SkCanvas.h" | 12 #include "SkCanvas.h" |
13 #include "SkDrawable.h" | 13 #include "SkDrawable.h" |
14 #include "SkImageFilter.h" | 14 #include "SkImageFilter.h" |
15 #include "SkMatrix.h" | 15 #include "SkMatrix.h" |
16 #include "SkPath.h" | 16 #include "SkPath.h" |
17 #include "SkPicture.h" | 17 #include "SkPicture.h" |
18 #include "SkRect.h" | 18 #include "SkRect.h" |
19 #include "SkRRect.h" | 19 #include "SkRRect.h" |
20 #include "SkRSXform.h" | 20 #include "SkRSXform.h" |
21 #include "SkString.h" | 21 #include "SkString.h" |
22 #include "SkTextBlob.h" | 22 #include "SkTextBlob.h" |
23 | 23 |
24 namespace SkRecords { | 24 namespace SkRecords { |
25 | 25 |
26 #ifdef DrawText | |
bungeman-skia
2016/06/06 18:11:59
We should put a short comment here that windows.h
hal.canary
2016/06/06 18:22:32
Done.
| |
27 #undef DrawText | |
28 #endif | |
29 | |
26 // A list of all the types of canvas calls we can record. | 30 // A list of all the types of canvas calls we can record. |
27 // Each of these is reified into a struct below. | 31 // Each of these is reified into a struct below. |
28 // | 32 // |
29 // (We're using the macro-of-macro trick here to do several different things wit h the same list.) | 33 // (We're using the macro-of-macro trick here to do several different things wit h the same list.) |
30 // | 34 // |
31 // We leave this SK_RECORD_TYPES macro defined for use by code that wants to ope rate on SkRecords | 35 // We leave this SK_RECORD_TYPES macro defined for use by code that wants to ope rate on SkRecords |
32 // types polymorphically. (See SkRecord::Record::{visit,mutate} for an example. ) | 36 // types polymorphically. (See SkRecord::Record::{visit,mutate} for an example. ) |
33 // | 37 // |
34 // Order doesn't technically matter here, but the compiler can generally generat e better code if | 38 // Order doesn't technically matter here, but the compiler can generally generat e better code if |
35 // you keep them semantically grouped, especially the Draws. It's also nice to leave NoOp at 0. | 39 // you keep them semantically grouped, especially the Draws. It's also nice to leave NoOp at 0. |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
363 int indexCount); | 367 int indexCount); |
364 RECORD(DrawAnnotation, 0, | 368 RECORD(DrawAnnotation, 0, |
365 SkRect rect; | 369 SkRect rect; |
366 SkString key; | 370 SkString key; |
367 RefBox<SkData> value); | 371 RefBox<SkData> value); |
368 #undef RECORD | 372 #undef RECORD |
369 | 373 |
370 } // namespace SkRecords | 374 } // namespace SkRecords |
371 | 375 |
372 #endif//SkRecords_DEFINED | 376 #endif//SkRecords_DEFINED |
OLD | NEW |