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

Side by Side Diff: cc/playback/drawing_display_item.cc

Issue 2748263002: Move cc::DisplayItemList and related classes into cc/paint/ (Closed)
Patch Set: Merge branch 'master' into ccpaint Created 3 years, 9 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/playback/drawing_display_item.h ('k') | cc/playback/filter_display_item.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "cc/playback/drawing_display_item.h"
6
7 #include "third_party/skia/include/core/SkPicture.h"
8
9 namespace cc {
10
11 DrawingDisplayItem::DrawingDisplayItem() : DisplayItem(DRAWING) {}
12
13 DrawingDisplayItem::DrawingDisplayItem(sk_sp<const PaintRecord> record)
14 : DisplayItem(DRAWING), picture(std::move(record)) {}
15
16 DrawingDisplayItem::DrawingDisplayItem(const DrawingDisplayItem& item)
17 : DisplayItem(DRAWING), picture(item.picture) {}
18
19 DrawingDisplayItem::~DrawingDisplayItem() = default;
20
21 size_t DrawingDisplayItem::ExternalMemoryUsage() const {
22 return picture->approximateBytesUsed();
23 }
24
25 DISABLE_CFI_PERF
26 int DrawingDisplayItem::ApproximateOpCount() const {
27 return picture->approximateOpCount();
28 }
29
30 } // namespace cc
OLDNEW
« no previous file with comments | « cc/playback/drawing_display_item.h ('k') | cc/playback/filter_display_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698