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

Side by Side Diff: cc/playback/display_item.h

Issue 2747273002: cc: Remove AsValue virtual from DisplayItem. (Closed)
Patch Set: 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/compositing_display_item.cc ('k') | cc/playback/display_item_list.h » ('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_PLAYBACK_DISPLAY_ITEM_H_ 5 #ifndef CC_PLAYBACK_DISPLAY_ITEM_H_
6 #define CC_PLAYBACK_DISPLAY_ITEM_H_ 6 #define CC_PLAYBACK_DISPLAY_ITEM_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 22 matching lines...) Expand all
33 FLOAT_CLIP, 33 FLOAT_CLIP,
34 END_FLOAT_CLIP, 34 END_FLOAT_CLIP,
35 TRANSFORM, 35 TRANSFORM,
36 END_TRANSFORM, 36 END_TRANSFORM,
37 }; 37 };
38 38
39 virtual ~DisplayItem() {} 39 virtual ~DisplayItem() {}
40 40
41 virtual void Raster(SkCanvas* canvas, 41 virtual void Raster(SkCanvas* canvas,
42 SkPicture::AbortCallback* callback) const = 0; 42 SkPicture::AbortCallback* callback) const = 0;
43 virtual void AsValueInto(const gfx::Rect& visual_rect,
44 base::trace_event::TracedValue* array) const = 0;
45 43
46 Type type() const { return type_; } 44 Type type() const { return type_; }
47 45
48 protected: 46 protected:
49 explicit DisplayItem(Type type) : type_(type) {} 47 explicit DisplayItem(Type type) : type_(type) {}
50 48
51 const Type type_; 49 const Type type_;
52 }; 50 };
53 51
54 } // namespace cc 52 } // namespace cc
55 53
56 #endif // CC_PLAYBACK_DISPLAY_ITEM_H_ 54 #endif // CC_PLAYBACK_DISPLAY_ITEM_H_
OLDNEW
« no previous file with comments | « cc/playback/compositing_display_item.cc ('k') | cc/playback/display_item_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698