OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CC_PLAYBACK_FLOAT_CLIP_DISPLAY_ITEM_H_ | |
6 #define CC_PLAYBACK_FLOAT_CLIP_DISPLAY_ITEM_H_ | |
7 | |
8 #include <stddef.h> | |
9 | |
10 #include "cc/base/cc_export.h" | |
11 #include "cc/playback/display_item.h" | |
12 #include "ui/gfx/geometry/rect_f.h" | |
13 | |
14 namespace cc { | |
15 | |
16 class CC_EXPORT FloatClipDisplayItem : public DisplayItem { | |
17 public: | |
18 explicit FloatClipDisplayItem(const gfx::RectF& clip_rect); | |
19 ~FloatClipDisplayItem() override; | |
20 | |
21 size_t ExternalMemoryUsage() const { return 0; } | |
22 int ApproximateOpCount() const { return 1; } | |
23 | |
24 const gfx::RectF clip_rect; | |
25 }; | |
26 | |
27 class CC_EXPORT EndFloatClipDisplayItem : public DisplayItem { | |
28 public: | |
29 EndFloatClipDisplayItem(); | |
30 ~EndFloatClipDisplayItem() override; | |
31 | |
32 int ApproximateOpCount() const { return 0; } | |
33 }; | |
34 | |
35 } // namespace cc | |
36 | |
37 #endif // CC_PLAYBACK_FLOAT_CLIP_DISPLAY_ITEM_H_ | |
OLD | NEW |