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

Side by Side Diff: cc/playback/compositing_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_path_display_item.cc ('k') | cc/playback/compositing_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_COMPOSITING_DISPLAY_ITEM_H_ 5 #ifndef CC_PLAYBACK_COMPOSITING_DISPLAY_ITEM_H_
6 #define CC_PLAYBACK_COMPOSITING_DISPLAY_ITEM_H_ 6 #define CC_PLAYBACK_COMPOSITING_DISPLAY_ITEM_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 18 matching lines...) Expand all
29 SkRect* bounds, 29 SkRect* bounds,
30 skia::RefPtr<SkColorFilter> color_filter, 30 skia::RefPtr<SkColorFilter> color_filter,
31 bool lcd_text_requires_opaque_layer); 31 bool lcd_text_requires_opaque_layer);
32 explicit CompositingDisplayItem(const proto::DisplayItem& proto); 32 explicit CompositingDisplayItem(const proto::DisplayItem& proto);
33 ~CompositingDisplayItem() override; 33 ~CompositingDisplayItem() override;
34 34
35 void ToProtobuf(proto::DisplayItem* proto, 35 void ToProtobuf(proto::DisplayItem* proto,
36 ImageSerializationProcessor* image_serialization_processor) 36 ImageSerializationProcessor* image_serialization_processor)
37 const override; 37 const override;
38 void Raster(SkCanvas* canvas, 38 void Raster(SkCanvas* canvas,
39 const gfx::Rect& canvas_target_playback_rect,
40 SkPicture::AbortCallback* callback) const override; 39 SkPicture::AbortCallback* callback) const override;
41 void AsValueInto(const gfx::Rect& visual_rect, 40 void AsValueInto(const gfx::Rect& visual_rect,
42 base::trace_event::TracedValue* array) const override; 41 base::trace_event::TracedValue* array) const override;
43 size_t ExternalMemoryUsage() const override; 42 size_t ExternalMemoryUsage() const override;
44 43
45 int ApproximateOpCount() const { return 1; } 44 int ApproximateOpCount() const { return 1; }
46 bool IsSuitableForGpuRasterization() const { return true; } 45 bool IsSuitableForGpuRasterization() const { return true; }
47 46
48 private: 47 private:
49 void SetNew(uint8_t alpha, 48 void SetNew(uint8_t alpha,
(...skipping 17 matching lines...) Expand all
67 ~EndCompositingDisplayItem() override; 66 ~EndCompositingDisplayItem() override;
68 67
69 static scoped_ptr<EndCompositingDisplayItem> Create() { 68 static scoped_ptr<EndCompositingDisplayItem> Create() {
70 return make_scoped_ptr(new EndCompositingDisplayItem()); 69 return make_scoped_ptr(new EndCompositingDisplayItem());
71 } 70 }
72 71
73 void ToProtobuf(proto::DisplayItem* proto, 72 void ToProtobuf(proto::DisplayItem* proto,
74 ImageSerializationProcessor* image_serialization_processor) 73 ImageSerializationProcessor* image_serialization_processor)
75 const override; 74 const override;
76 void Raster(SkCanvas* canvas, 75 void Raster(SkCanvas* canvas,
77 const gfx::Rect& canvas_target_playback_rect,
78 SkPicture::AbortCallback* callback) const override; 76 SkPicture::AbortCallback* callback) const override;
79 void AsValueInto(const gfx::Rect& visual_rect, 77 void AsValueInto(const gfx::Rect& visual_rect,
80 base::trace_event::TracedValue* array) const override; 78 base::trace_event::TracedValue* array) const override;
81 size_t ExternalMemoryUsage() const override; 79 size_t ExternalMemoryUsage() const override;
82 80
83 int ApproximateOpCount() const { return 0; } 81 int ApproximateOpCount() const { return 0; }
84 bool IsSuitableForGpuRasterization() const { return true; } 82 bool IsSuitableForGpuRasterization() const { return true; }
85 }; 83 };
86 84
87 } // namespace cc 85 } // namespace cc
88 86
89 #endif // CC_PLAYBACK_COMPOSITING_DISPLAY_ITEM_H_ 87 #endif // CC_PLAYBACK_COMPOSITING_DISPLAY_ITEM_H_
OLDNEW
« no previous file with comments | « cc/playback/clip_path_display_item.cc ('k') | cc/playback/compositing_display_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698