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