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

Side by Side Diff: cc/paint/paint_record.h

Issue 2889653002: Remove cullRect() from PaintOpBuffer. (Closed)
Patch Set: movecullrect2 rebase-once-and-for-all Created 3 years, 7 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
« no previous file with comments | « cc/paint/paint_op_buffer_unittest.cc ('k') | cc/paint/paint_record.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_PAINT_PAINT_RECORD_H_ 5 #ifndef CC_PAINT_PAINT_RECORD_H_
6 #define CC_PAINT_PAINT_RECORD_H_ 6 #define CC_PAINT_PAINT_RECORD_H_
7 7
8 #include "cc/paint/paint_export.h" 8 #include "cc/paint/paint_export.h"
9 #include "cc/paint/paint_op_buffer.h" 9 #include "cc/paint/paint_op_buffer.h"
10 #include "third_party/skia/include/core/SkPicture.h" 10 #include "third_party/skia/include/core/SkPicture.h"
11 11
12 namespace cc { 12 namespace cc {
13 13
14 // TODO(enne): Don't want to rename the world for this. Using these as the 14 // TODO(enne): Don't want to rename the world for this. Using these as the
15 // same types for now prevents an extra allocation. Probably PaintRecord 15 // same types for now prevents an extra allocation. Probably PaintRecord
16 // will become an interface in the future. 16 // will become an interface in the future.
17 using PaintRecord = PaintOpBuffer; 17 using PaintRecord = PaintOpBuffer;
18 18
19 // TODO(enne): Remove these if possible, they are really expensive. 19 // TODO(enne): Remove these if possible, they are really expensive.
20 CC_PAINT_EXPORT sk_sp<SkPicture> ToSkPicture(sk_sp<PaintRecord> record); 20 CC_PAINT_EXPORT sk_sp<SkPicture> ToSkPicture(sk_sp<PaintRecord> record,
21 const SkRect& bounds);
21 22
22 CC_PAINT_EXPORT sk_sp<const SkPicture> ToSkPicture( 23 CC_PAINT_EXPORT sk_sp<const SkPicture> ToSkPicture(
23 sk_sp<const PaintRecord> record); 24 sk_sp<const PaintRecord> record,
25 const SkRect& bounds);
24 26
25 } // namespace cc 27 } // namespace cc
26 28
27 #endif // CC_PAINT_PAINT_RECORD_H_ 29 #endif // CC_PAINT_PAINT_RECORD_H_
OLDNEW
« no previous file with comments | « cc/paint/paint_op_buffer_unittest.cc ('k') | cc/paint/paint_record.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698