| OLD | NEW |
| 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 15 matching lines...) Expand all Loading... |
| 26 public: | 26 public: |
| 27 CompositingDisplayItem(uint8_t alpha, | 27 CompositingDisplayItem(uint8_t alpha, |
| 28 SkBlendMode xfermode, | 28 SkBlendMode xfermode, |
| 29 SkRect* bounds, | 29 SkRect* bounds, |
| 30 sk_sp<SkColorFilter> color_filter, | 30 sk_sp<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) const override; | 35 void ToProtobuf(proto::DisplayItem* proto) const override; |
| 36 void Raster(SkCanvas* canvas, | 36 void Raster(CdlCanvas* canvas, |
| 37 SkPicture::AbortCallback* callback) const override; | 37 SkPicture::AbortCallback* callback) const override; |
| 38 void AsValueInto(const gfx::Rect& visual_rect, | 38 void AsValueInto(const gfx::Rect& visual_rect, |
| 39 base::trace_event::TracedValue* array) const override; | 39 base::trace_event::TracedValue* array) const override; |
| 40 size_t ExternalMemoryUsage() const override; | 40 size_t ExternalMemoryUsage() const override; |
| 41 | 41 |
| 42 int ApproximateOpCount() const { return 1; } | 42 int ApproximateOpCount() const { return 1; } |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 void SetNew(uint8_t alpha, | 45 void SetNew(uint8_t alpha, |
| 46 SkBlendMode xfermode, | 46 SkBlendMode xfermode, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 60 public: | 60 public: |
| 61 EndCompositingDisplayItem(); | 61 EndCompositingDisplayItem(); |
| 62 explicit EndCompositingDisplayItem(const proto::DisplayItem& proto); | 62 explicit EndCompositingDisplayItem(const proto::DisplayItem& proto); |
| 63 ~EndCompositingDisplayItem() override; | 63 ~EndCompositingDisplayItem() override; |
| 64 | 64 |
| 65 static std::unique_ptr<EndCompositingDisplayItem> Create() { | 65 static std::unique_ptr<EndCompositingDisplayItem> Create() { |
| 66 return base::MakeUnique<EndCompositingDisplayItem>(); | 66 return base::MakeUnique<EndCompositingDisplayItem>(); |
| 67 } | 67 } |
| 68 | 68 |
| 69 void ToProtobuf(proto::DisplayItem* proto) const override; | 69 void ToProtobuf(proto::DisplayItem* proto) const override; |
| 70 void Raster(SkCanvas* canvas, | 70 void Raster(CdlCanvas* canvas, |
| 71 SkPicture::AbortCallback* callback) const override; | 71 SkPicture::AbortCallback* callback) const override; |
| 72 void AsValueInto(const gfx::Rect& visual_rect, | 72 void AsValueInto(const gfx::Rect& visual_rect, |
| 73 base::trace_event::TracedValue* array) const override; | 73 base::trace_event::TracedValue* array) const override; |
| 74 size_t ExternalMemoryUsage() const override; | 74 size_t ExternalMemoryUsage() const override; |
| 75 | 75 |
| 76 int ApproximateOpCount() const { return 0; } | 76 int ApproximateOpCount() const { return 0; } |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace cc | 79 } // namespace cc |
| 80 | 80 |
| 81 #endif // CC_PLAYBACK_COMPOSITING_DISPLAY_ITEM_H_ | 81 #endif // CC_PLAYBACK_COMPOSITING_DISPLAY_ITEM_H_ |
| OLD | NEW |