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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 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_PAINT_PAINT_RECORD_H_
6 #define CC_PAINT_PAINT_RECORD_H_
7
8 #include "third_party/skia/include/core/SkPicture.h"
9 #include "third_party/skia/include/utils/SkPictureUtils.h"
10
11 namespace cc {
12
13 typedef SkPicture PaintRecord;
14
15 inline const SkPicture* ToSkPicture(const PaintRecord* record) {
16 return record;
17 }
18
19 inline SkPicture* ToSkPicture(PaintRecord* record) {
20 return record;
21 }
22
23 inline sk_sp<SkPicture> ToSkPicture(sk_sp<PaintRecord> record) {
24 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.
25 }
26
27 inline sk_sp<const SkPicture> ToSkPicture(sk_sp<const PaintRecord> record) {
28 return record;
29 }
30
31 } // namespace cc
32
33 #endif // CC_PAINT_PAINT_RECORD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698