Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(373)

Unified Diff: cc/paint/paint_record.h

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: Clean up comments, fix mac build Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..99b871ba1494c0dba567a26b542432c5e5b6ae6a
--- /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 {
+
+typedef SkPicture PaintRecord;
+
+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;
vmpstr 2017/01/21 01:11:31 Should these be std::move? I think for g++, it mig
enne (OOO) 2017/01/24 01:51:27 I think this is ok because of the typedef.
+}
+
+inline sk_sp<const SkPicture> ToSkPicture(sk_sp<const PaintRecord> record) {
+ return record;
+}
+
+} // namespace cc
+
+#endif // CC_PAINT_PAINT_RECORD_H_

Powered by Google App Engine
This is Rietveld 408576698