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

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

Issue 1835843002: WIP: Fix foreignObject cullrect Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/display_list_recording_source.cc ('k') | cc/playback/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_PLAYBACK_DRAWING_DISPLAY_ITEM_H_ 5 #ifndef CC_PLAYBACK_DRAWING_DISPLAY_ITEM_H_
6 #define CC_PLAYBACK_DRAWING_DISPLAY_ITEM_H_ 6 #define CC_PLAYBACK_DRAWING_DISPLAY_ITEM_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 15 matching lines...) Expand all
26 explicit DrawingDisplayItem( 26 explicit DrawingDisplayItem(
27 const proto::DisplayItem& proto, 27 const proto::DisplayItem& proto,
28 ImageSerializationProcessor* image_serialization_processor); 28 ImageSerializationProcessor* image_serialization_processor);
29 explicit DrawingDisplayItem(const DrawingDisplayItem& item); 29 explicit DrawingDisplayItem(const DrawingDisplayItem& item);
30 ~DrawingDisplayItem() override; 30 ~DrawingDisplayItem() override;
31 31
32 void ToProtobuf(proto::DisplayItem* proto, 32 void ToProtobuf(proto::DisplayItem* proto,
33 ImageSerializationProcessor* image_serialization_processor) 33 ImageSerializationProcessor* image_serialization_processor)
34 const override; 34 const override;
35 void Raster(SkCanvas* canvas, 35 void Raster(SkCanvas* canvas,
36 const gfx::Rect& canvas_playback_rect,
37 SkPicture::AbortCallback* callback) const override; 36 SkPicture::AbortCallback* callback) const override;
38 void AsValueInto(const gfx::Rect& visual_rect, 37 void AsValueInto(const gfx::Rect& visual_rect,
39 base::trace_event::TracedValue* array) const override; 38 base::trace_event::TracedValue* array) const override;
40 size_t ExternalMemoryUsage() const override; 39 size_t ExternalMemoryUsage() const override;
41 40
42 int ApproximateOpCount() const; 41 int ApproximateOpCount() const;
43 bool IsSuitableForGpuRasterization() const; 42 bool IsSuitableForGpuRasterization() const;
44 43
45 void CloneTo(DrawingDisplayItem* item) const; 44 void CloneTo(DrawingDisplayItem* item) const;
46 45
47 private: 46 private:
48 void SetNew(sk_sp<const SkPicture> picture); 47 void SetNew(sk_sp<const SkPicture> picture);
49 48
50 sk_sp<const SkPicture> picture_; 49 sk_sp<const SkPicture> picture_;
51 }; 50 };
52 51
53 } // namespace cc 52 } // namespace cc
54 53
55 #endif // CC_PLAYBACK_DRAWING_DISPLAY_ITEM_H_ 54 #endif // CC_PLAYBACK_DRAWING_DISPLAY_ITEM_H_
OLDNEW
« no previous file with comments | « cc/playback/display_list_recording_source.cc ('k') | cc/playback/drawing_display_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698