| 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 // Windows.h, will pull in all of the GDI defines. GDI #defines |
| 25 // DrawText to DrawTextA or DrawTextW, but SkRecord has a struct |
| 26 // called DrawText. Since this file does not use GDI, undefing |
| 27 // DrawText makes things less confusing. |
| 28 #ifdef DrawText |
| 29 #undef DrawText |
| 30 #endif |
| 31 |
| 24 namespace SkRecords { | 32 namespace SkRecords { |
| 25 | 33 |
| 26 // A list of all the types of canvas calls we can record. | 34 // A list of all the types of canvas calls we can record. |
| 27 // Each of these is reified into a struct below. | 35 // Each of these is reified into a struct below. |
| 28 // | 36 // |
| 29 // (We're using the macro-of-macro trick here to do several different things wit
h the same list.) | 37 // (We're using the macro-of-macro trick here to do several different things wit
h the same list.) |
| 30 // | 38 // |
| 31 // We leave this SK_RECORD_TYPES macro defined for use by code that wants to ope
rate on SkRecords | 39 // 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.
) | 40 // types polymorphically. (See SkRecord::Record::{visit,mutate} for an example.
) |
| 33 // | 41 // |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 int indexCount); | 371 int indexCount); |
| 364 RECORD(DrawAnnotation, 0, | 372 RECORD(DrawAnnotation, 0, |
| 365 SkRect rect; | 373 SkRect rect; |
| 366 SkString key; | 374 SkString key; |
| 367 RefBox<SkData> value); | 375 RefBox<SkData> value); |
| 368 #undef RECORD | 376 #undef RECORD |
| 369 | 377 |
| 370 } // namespace SkRecords | 378 } // namespace SkRecords |
| 371 | 379 |
| 372 #endif//SkRecords_DEFINED | 380 #endif//SkRecords_DEFINED |
| OLD | NEW |