Index: cc/paint/paint_record.h |
diff --git a/cc/paint/paint_record.h b/cc/paint/paint_record.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a376394cc84e9e79eefe16a0b04a37abd2c216c7 |
--- /dev/null |
+++ b/cc/paint/paint_record.h |
@@ -0,0 +1,33 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CC_PAINT_PAINT_RECORD_H_ |
+#define CC_PAINT_PAINT_RECORD_H_ |
+ |
+#include "third_party/skia/include/core/SkPicture.h" |
+#include "third_party/skia/include/utils/SkPictureUtils.h" |
+ |
+namespace cc { |
+ |
+using PaintRecord = SkPicture; |
+ |
+inline const SkPicture* ToSkPicture(const PaintRecord* record) { |
+ return record; |
+} |
+ |
+inline SkPicture* ToSkPicture(PaintRecord* record) { |
+ return record; |
+} |
+ |
+inline sk_sp<SkPicture> ToSkPicture(sk_sp<PaintRecord> record) { |
+ return record; |
+} |
+ |
+inline sk_sp<const SkPicture> ToSkPicture(sk_sp<const PaintRecord> record) { |
+ return record; |
+} |
+ |
+} // namespace cc |
+ |
+#endif // CC_PAINT_PAINT_RECORD_H_ |