| OLD | NEW |
| 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_CLIP_DISPLAY_ITEM_H_ | 5 #ifndef CC_PLAYBACK_CLIP_DISPLAY_ITEM_H_ |
| 6 #define CC_PLAYBACK_CLIP_DISPLAY_ITEM_H_ | 6 #define CC_PLAYBACK_CLIP_DISPLAY_ITEM_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 ~ClipDisplayItem() override; | 23 ~ClipDisplayItem() override; |
| 24 | 24 |
| 25 void SetNew(gfx::Rect clip_rect, | 25 void SetNew(gfx::Rect clip_rect, |
| 26 const std::vector<SkRRect>& rounded_clip_rects); | 26 const std::vector<SkRRect>& rounded_clip_rects); |
| 27 | 27 |
| 28 void ToProtobuf(proto::DisplayItem* proto) const override; | 28 void ToProtobuf(proto::DisplayItem* proto) const override; |
| 29 void FromProtobuf(const proto::DisplayItem& proto) override; | 29 void FromProtobuf(const proto::DisplayItem& proto) override; |
| 30 void Raster(SkCanvas* canvas, | 30 void Raster(SkCanvas* canvas, |
| 31 const gfx::Rect& canvas_target_playback_rect, | 31 const gfx::Rect& canvas_target_playback_rect, |
| 32 SkPicture::AbortCallback* callback) const override; | 32 SkPicture::AbortCallback* callback) const override; |
| 33 void AsValueInto(base::trace_event::TracedValue* array) const override; | 33 void AsValueInto(const gfx::Rect& visual_rect, |
| 34 base::trace_event::TracedValue* array) const override; |
| 34 | 35 |
| 35 private: | 36 private: |
| 36 gfx::Rect clip_rect_; | 37 gfx::Rect clip_rect_; |
| 37 std::vector<SkRRect> rounded_clip_rects_; | 38 std::vector<SkRRect> rounded_clip_rects_; |
| 38 }; | 39 }; |
| 39 | 40 |
| 40 class CC_EXPORT EndClipDisplayItem : public DisplayItem { | 41 class CC_EXPORT EndClipDisplayItem : public DisplayItem { |
| 41 public: | 42 public: |
| 42 EndClipDisplayItem(); | 43 EndClipDisplayItem(); |
| 43 ~EndClipDisplayItem() override; | 44 ~EndClipDisplayItem() override; |
| 44 | 45 |
| 45 void ToProtobuf(proto::DisplayItem* proto) const override; | 46 void ToProtobuf(proto::DisplayItem* proto) const override; |
| 46 void FromProtobuf(const proto::DisplayItem& proto) override; | 47 void FromProtobuf(const proto::DisplayItem& proto) override; |
| 47 void Raster(SkCanvas* canvas, | 48 void Raster(SkCanvas* canvas, |
| 48 const gfx::Rect& canvas_target_playback_rect, | 49 const gfx::Rect& canvas_target_playback_rect, |
| 49 SkPicture::AbortCallback* callback) const override; | 50 SkPicture::AbortCallback* callback) const override; |
| 50 void AsValueInto(base::trace_event::TracedValue* array) const override; | 51 void AsValueInto(const gfx::Rect& visual_rect, |
| 52 base::trace_event::TracedValue* array) const override; |
| 51 }; | 53 }; |
| 52 | 54 |
| 53 } // namespace cc | 55 } // namespace cc |
| 54 | 56 |
| 55 #endif // CC_PLAYBACK_CLIP_DISPLAY_ITEM_H_ | 57 #endif // CC_PLAYBACK_CLIP_DISPLAY_ITEM_H_ |
| OLD | NEW |