| 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_PAINT_COMPOSITING_DISPLAY_ITEM_H_ | 5 #ifndef CC_PAINT_COMPOSITING_DISPLAY_ITEM_H_ | 
| 6 #define CC_PAINT_COMPOSITING_DISPLAY_ITEM_H_ | 6 #define CC_PAINT_COMPOSITING_DISPLAY_ITEM_H_ | 
| 7 | 7 | 
| 8 #include <stddef.h> | 8 #include <stddef.h> | 
| 9 | 9 | 
| 10 #include "cc/paint/display_item.h" | 10 #include "cc/paint/display_item.h" | 
| (...skipping 11 matching lines...) Expand all  Loading... | 
| 22                          SkBlendMode xfermode, | 22                          SkBlendMode xfermode, | 
| 23                          SkRect* bounds, | 23                          SkRect* bounds, | 
| 24                          sk_sp<SkColorFilter> color_filter, | 24                          sk_sp<SkColorFilter> color_filter, | 
| 25                          bool lcd_text_requires_opaque_layer); | 25                          bool lcd_text_requires_opaque_layer); | 
| 26   ~CompositingDisplayItem() override; | 26   ~CompositingDisplayItem() override; | 
| 27 | 27 | 
| 28   size_t ExternalMemoryUsage() const { | 28   size_t ExternalMemoryUsage() const { | 
| 29     // TODO(pdr): Include color_filter's memory here. | 29     // TODO(pdr): Include color_filter's memory here. | 
| 30     return 0; | 30     return 0; | 
| 31   } | 31   } | 
| 32   int ApproximateOpCount() const { return 1; } | 32   int OpCount() const { return 1; } | 
| 33 | 33 | 
| 34   const uint8_t alpha; | 34   const uint8_t alpha; | 
| 35   const SkBlendMode xfermode; | 35   const SkBlendMode xfermode; | 
| 36   const bool has_bounds; | 36   const bool has_bounds; | 
| 37   const SkRect bounds; | 37   const SkRect bounds; | 
| 38   const sk_sp<SkColorFilter> color_filter; | 38   const sk_sp<SkColorFilter> color_filter; | 
| 39   const bool lcd_text_requires_opaque_layer; | 39   const bool lcd_text_requires_opaque_layer; | 
| 40 }; | 40 }; | 
| 41 | 41 | 
| 42 class CC_PAINT_EXPORT EndCompositingDisplayItem : public DisplayItem { | 42 class CC_PAINT_EXPORT EndCompositingDisplayItem : public DisplayItem { | 
| 43  public: | 43  public: | 
| 44   EndCompositingDisplayItem(); | 44   EndCompositingDisplayItem(); | 
| 45   ~EndCompositingDisplayItem() override; | 45   ~EndCompositingDisplayItem() override; | 
| 46 | 46 | 
| 47   int ApproximateOpCount() const { return 0; } | 47   int OpCount() const { return 0; } | 
| 48 }; | 48 }; | 
| 49 | 49 | 
| 50 }  // namespace cc | 50 }  // namespace cc | 
| 51 | 51 | 
| 52 #endif  // CC_PAINT_COMPOSITING_DISPLAY_ITEM_H_ | 52 #endif  // CC_PAINT_COMPOSITING_DISPLAY_ITEM_H_ | 
| OLD | NEW | 
|---|