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

Side by Side Diff: cc/playback/clip_path_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/clip_display_item.cc ('k') | cc/playback/clip_path_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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_CLIP_PATH_DISPLAY_ITEM_H_ 5 #ifndef CC_PLAYBACK_CLIP_PATH_DISPLAY_ITEM_H_
6 #define CC_PLAYBACK_CLIP_PATH_DISPLAY_ITEM_H_ 6 #define CC_PLAYBACK_CLIP_PATH_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 10 matching lines...) Expand all
21 class CC_EXPORT ClipPathDisplayItem : public DisplayItem { 21 class CC_EXPORT ClipPathDisplayItem : public DisplayItem {
22 public: 22 public:
23 ClipPathDisplayItem(const SkPath& path, SkRegion::Op clip_op, bool antialias); 23 ClipPathDisplayItem(const SkPath& path, SkRegion::Op clip_op, bool antialias);
24 explicit ClipPathDisplayItem(const proto::DisplayItem& proto); 24 explicit ClipPathDisplayItem(const proto::DisplayItem& proto);
25 ~ClipPathDisplayItem() override; 25 ~ClipPathDisplayItem() override;
26 26
27 void ToProtobuf(proto::DisplayItem* proto, 27 void ToProtobuf(proto::DisplayItem* proto,
28 ImageSerializationProcessor* image_serialization_processor) 28 ImageSerializationProcessor* image_serialization_processor)
29 const override; 29 const override;
30 void Raster(SkCanvas* canvas, 30 void Raster(SkCanvas* canvas,
31 const gfx::Rect& canvas_target_playback_rect,
32 SkPicture::AbortCallback* callback) const override; 31 SkPicture::AbortCallback* callback) const override;
33 void AsValueInto(const gfx::Rect& visual_rect, 32 void AsValueInto(const gfx::Rect& visual_rect,
34 base::trace_event::TracedValue* array) const override; 33 base::trace_event::TracedValue* array) const override;
35 size_t ExternalMemoryUsage() const override; 34 size_t ExternalMemoryUsage() const override;
36 35
37 int ApproximateOpCount() const { return 1; } 36 int ApproximateOpCount() const { return 1; }
38 bool IsSuitableForGpuRasterization() const { return true; } 37 bool IsSuitableForGpuRasterization() const { return true; }
39 38
40 private: 39 private:
41 void SetNew(const SkPath& path, SkRegion::Op clip_op, bool antialias); 40 void SetNew(const SkPath& path, SkRegion::Op clip_op, bool antialias);
(...skipping 10 matching lines...) Expand all
52 ~EndClipPathDisplayItem() override; 51 ~EndClipPathDisplayItem() override;
53 52
54 static scoped_ptr<EndClipPathDisplayItem> Create() { 53 static scoped_ptr<EndClipPathDisplayItem> Create() {
55 return make_scoped_ptr(new EndClipPathDisplayItem()); 54 return make_scoped_ptr(new EndClipPathDisplayItem());
56 } 55 }
57 56
58 void ToProtobuf(proto::DisplayItem* proto, 57 void ToProtobuf(proto::DisplayItem* proto,
59 ImageSerializationProcessor* image_serialization_processor) 58 ImageSerializationProcessor* image_serialization_processor)
60 const override; 59 const override;
61 void Raster(SkCanvas* canvas, 60 void Raster(SkCanvas* canvas,
62 const gfx::Rect& canvas_target_playback_rect,
63 SkPicture::AbortCallback* callback) const override; 61 SkPicture::AbortCallback* callback) const override;
64 void AsValueInto(const gfx::Rect& visual_rect, 62 void AsValueInto(const gfx::Rect& visual_rect,
65 base::trace_event::TracedValue* array) const override; 63 base::trace_event::TracedValue* array) const override;
66 size_t ExternalMemoryUsage() const override; 64 size_t ExternalMemoryUsage() const override;
67 65
68 int ApproximateOpCount() const { return 0; } 66 int ApproximateOpCount() const { return 0; }
69 bool IsSuitableForGpuRasterization() const { return true; } 67 bool IsSuitableForGpuRasterization() const { return true; }
70 }; 68 };
71 69
72 } // namespace cc 70 } // namespace cc
73 71
74 #endif // CC_PLAYBACK_CLIP_PATH_DISPLAY_ITEM_H_ 72 #endif // CC_PLAYBACK_CLIP_PATH_DISPLAY_ITEM_H_
OLDNEW
« no previous file with comments | « cc/playback/clip_display_item.cc ('k') | cc/playback/clip_path_display_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698