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

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

Issue 2075873002: Support general raster matrix for RasterSource and DisplayItemList (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix a bug in PrepareForPlaybackToCanvas and fix cc_unittests Created 4 years, 6 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
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 13 matching lines...) Expand all
24 } // namespace proto 24 } // namespace proto
25 25
26 class CC_EXPORT DisplayItem { 26 class CC_EXPORT DisplayItem {
27 public: 27 public:
28 virtual ~DisplayItem() {} 28 virtual ~DisplayItem() {}
29 29
30 virtual void ToProtobuf( 30 virtual void ToProtobuf(
31 proto::DisplayItem* proto, 31 proto::DisplayItem* proto,
32 ImageSerializationProcessor* image_serialization_processor) const = 0; 32 ImageSerializationProcessor* image_serialization_processor) const = 0;
33 virtual void Raster(SkCanvas* canvas, 33 virtual void Raster(SkCanvas* canvas,
34 const gfx::Rect& canvas_target_playback_rect,
35 SkPicture::AbortCallback* callback) const = 0; 34 SkPicture::AbortCallback* callback) const = 0;
36 virtual void AsValueInto(const gfx::Rect& visual_rect, 35 virtual void AsValueInto(const gfx::Rect& visual_rect,
37 base::trace_event::TracedValue* array) const = 0; 36 base::trace_event::TracedValue* array) const = 0;
38 // For tracing. 37 // For tracing.
39 virtual size_t ExternalMemoryUsage() const = 0; 38 virtual size_t ExternalMemoryUsage() const = 0;
40 39
41 protected: 40 protected:
42 DisplayItem(); 41 DisplayItem();
43 }; 42 };
44 43
45 } // namespace cc 44 } // namespace cc
46 45
47 #endif // CC_PLAYBACK_DISPLAY_ITEM_H_ 46 #endif // CC_PLAYBACK_DISPLAY_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698