| 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 WebDisplayItemList_h | 5 #ifndef WebDisplayItemList_h |
| 6 #define WebDisplayItemList_h | 6 #define WebDisplayItemList_h |
| 7 | 7 |
| 8 #include "WebBlendMode.h" | 8 #include "WebBlendMode.h" |
| 9 #include "WebFloatPoint.h" | 9 #include "WebFloatPoint.h" |
| 10 #include "WebFloatRect.h" | 10 #include "WebFloatRect.h" |
| 11 #include "WebRect.h" | 11 #include "WebRect.h" |
| 12 #include "WebSize.h" | 12 #include "WebSize.h" |
| 13 #include "WebVector.h" | 13 #include "WebVector.h" |
| 14 | 14 |
| 15 #include "cc/paint/paint_record.h" | 15 #include "cc/paint/paint_record.h" |
| 16 #include "third_party/skia/include/core/SkBlendMode.h" | 16 #include "third_party/skia/include/core/SkBlendMode.h" |
| 17 #include "third_party/skia/include/core/SkRefCnt.h" | 17 #include "third_party/skia/include/core/SkRefCnt.h" |
| 18 | 18 |
| 19 class SkColorFilter; | 19 class SkColorFilter; |
| 20 class SkMatrix44; | 20 class SkMatrix44; |
| 21 class SkPath; | 21 class SkPath; |
| 22 struct SkRect; | 22 struct SkRect; |
| 23 class SkRRect; | 23 class SkRRect; |
| 24 | 24 |
| 25 namespace cc { | 25 namespace cc { |
| 26 class FilterOperations; | 26 class FilterOperations; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace gfx { | |
| 30 class ColorSpace; | |
| 31 } | |
| 32 | |
| 33 namespace blink { | 29 namespace blink { |
| 34 | 30 |
| 35 // An ordered list of items representing content to be rendered (stored in | 31 // An ordered list of items representing content to be rendered (stored in |
| 36 // 'drawing' items) and operations to be performed when rendering this content | 32 // 'drawing' items) and operations to be performed when rendering this content |
| 37 // (stored in 'clip', 'transform', 'filter', etc...). For more details see: | 33 // (stored in 'clip', 'transform', 'filter', etc...). For more details see: |
| 38 // http://dev.chromium.org/blink/slimming-paint. | 34 // http://dev.chromium.org/blink/slimming-paint. |
| 39 class WebDisplayItemList { | 35 class WebDisplayItemList { |
| 40 public: | 36 public: |
| 41 virtual ~WebDisplayItemList() {} | 37 virtual ~WebDisplayItemList() {} |
| 42 | 38 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 64 const WebFloatPoint& origin) {} | 60 const WebFloatPoint& origin) {} |
| 65 virtual void appendEndFilterItem() {} | 61 virtual void appendEndFilterItem() {} |
| 66 | 62 |
| 67 // Scroll containers are identified by an opaque pointer. | 63 // Scroll containers are identified by an opaque pointer. |
| 68 using ScrollContainerId = const void*; | 64 using ScrollContainerId = const void*; |
| 69 virtual void appendScrollItem(const WebSize& scrollOffset, | 65 virtual void appendScrollItem(const WebSize& scrollOffset, |
| 70 ScrollContainerId) {} | 66 ScrollContainerId) {} |
| 71 virtual void appendEndScrollItem() {} | 67 virtual void appendEndScrollItem() {} |
| 72 | 68 |
| 73 virtual void setIsSuitableForGpuRasterization(bool isSuitable) {} | 69 virtual void setIsSuitableForGpuRasterization(bool isSuitable) {} |
| 74 | |
| 75 // Specifies the color space that the inputs of this display list were | |
| 76 // pre-converted into. If this is specified, then rasterization must not | |
| 77 // perform any color correction, and the result must be interpreted as being | |
| 78 // in this color space. | |
| 79 virtual void setImpliedColorSpace(const gfx::ColorSpace&) {} | |
| 80 }; | 70 }; |
| 81 | 71 |
| 82 } // namespace blink | 72 } // namespace blink |
| 83 | 73 |
| 84 #endif // WebDisplayItemList_h | 74 #endif // WebDisplayItemList_h |
| OLD | NEW |