| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CC_BLIMP_PICTURE_DATA_H_ | |
| 6 #define CC_BLIMP_PICTURE_DATA_H_ | |
| 7 | |
| 8 #include <stdint.h> | |
| 9 | |
| 10 #include "cc/base/cc_export.h" | |
| 11 #include "third_party/skia/include/core/SkData.h" | |
| 12 #include "third_party/skia/include/core/SkRefCnt.h" | |
| 13 | |
| 14 namespace cc { | |
| 15 | |
| 16 // PictureData is a holder object for a serialized SkPicture and its unique ID. | |
| 17 struct CC_EXPORT PictureData { | |
| 18 PictureData(uint32_t unique_id, sk_sp<SkData> data); | |
| 19 PictureData(const PictureData& other); | |
| 20 ~PictureData(); | |
| 21 | |
| 22 uint32_t unique_id; | |
| 23 sk_sp<SkData> data; | |
| 24 }; | |
| 25 | |
| 26 } // namespace cc | |
| 27 | |
| 28 #endif // CC_BLIMP_PICTURE_DATA_H_ | |
| OLD | NEW |