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

Side by Side Diff: cc/paint/drawing_display_item.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/display_item_list_unittest.cc ('k') | cc/paint/drawing_display_item.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_DRAWING_DISPLAY_ITEM_H_ 5 #ifndef CC_PAINT_DRAWING_DISPLAY_ITEM_H_
6 #define CC_PAINT_DRAWING_DISPLAY_ITEM_H_ 6 #define CC_PAINT_DRAWING_DISPLAY_ITEM_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "cc/paint/display_item.h" 10 #include "cc/paint/display_item.h"
11 #include "cc/paint/paint_export.h" 11 #include "cc/paint/paint_export.h"
12 #include "cc/paint/paint_record.h" 12 #include "cc/paint/paint_record.h"
13 #include "third_party/skia/include/core/SkRefCnt.h" 13 #include "third_party/skia/include/core/SkRefCnt.h"
14 14
15 namespace cc { 15 namespace cc {
16 16
17 class CC_PAINT_EXPORT DrawingDisplayItem : public DisplayItem { 17 class CC_PAINT_EXPORT DrawingDisplayItem : public DisplayItem {
18 public: 18 public:
19 DrawingDisplayItem(); 19 DrawingDisplayItem();
20 explicit DrawingDisplayItem(sk_sp<const PaintRecord> record); 20 explicit DrawingDisplayItem(sk_sp<const PaintRecord> record,
21 const SkRect& bounds);
21 explicit DrawingDisplayItem(const DrawingDisplayItem& item); 22 explicit DrawingDisplayItem(const DrawingDisplayItem& item);
22 ~DrawingDisplayItem() override; 23 ~DrawingDisplayItem() override;
23 24
24 size_t ExternalMemoryUsage() const; 25 size_t ExternalMemoryUsage() const;
25 size_t OpCount() const; 26 size_t OpCount() const;
26 27
27 const sk_sp<const PaintRecord> picture; 28 const sk_sp<const PaintRecord> picture;
29 SkRect bounds;
28 }; 30 };
29 31
30 } // namespace cc 32 } // namespace cc
31 33
32 #endif // CC_PAINT_DRAWING_DISPLAY_ITEM_H_ 34 #endif // CC_PAINT_DRAWING_DISPLAY_ITEM_H_
OLDNEW
« no previous file with comments | « cc/paint/display_item_list_unittest.cc ('k') | cc/paint/drawing_display_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698