| 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 "skia/ext/cdl_common.h" |
| 15 #include "third_party/skia/include/core/SkBlendMode.h" | 16 #include "third_party/skia/include/core/SkBlendMode.h" |
| 16 #include "third_party/skia/include/core/SkRefCnt.h" | 17 #include "third_party/skia/include/core/SkRefCnt.h" |
| 17 #include "third_party/skia/include/core/SkRegion.h" | 18 #include "third_party/skia/include/core/SkRegion.h" |
| 18 | 19 |
| 19 class SkColorFilter; | 20 class SkColorFilter; |
| 20 class SkMatrix44; | 21 class SkMatrix44; |
| 21 class SkPicture; | |
| 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 { | 29 namespace gfx { |
| 30 class ColorSpace; | 30 class ColorSpace; |
| 31 } | 31 } |
| 32 | 32 |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 // An ordered list of items representing content to be rendered (stored in | 35 // An ordered list of items representing content to be rendered (stored in |
| 36 // 'drawing' items) and operations to be performed when rendering this content | 36 // 'drawing' items) and operations to be performed when rendering this content |
| 37 // (stored in 'clip', 'transform', 'filter', etc...). For more details see: | 37 // (stored in 'clip', 'transform', 'filter', etc...). For more details see: |
| 38 // http://dev.chromium.org/blink/slimming-paint. | 38 // http://dev.chromium.org/blink/slimming-paint. |
| 39 class WebDisplayItemList { | 39 class WebDisplayItemList { |
| 40 public: | 40 public: |
| 41 virtual ~WebDisplayItemList() {} | 41 virtual ~WebDisplayItemList() {} |
| 42 | 42 |
| 43 virtual void appendDrawingItem(const WebRect& visualRect, | 43 virtual void appendDrawingItem(const WebRect& visualRect, |
| 44 sk_sp<const SkPicture>) {} | 44 sk_sp<const CdlPicture>) {} |
| 45 | 45 |
| 46 virtual void appendClipItem(const WebRect& clipRect, | 46 virtual void appendClipItem(const WebRect& clipRect, |
| 47 const WebVector<SkRRect>& roundedClipRects) {} | 47 const WebVector<SkRRect>& roundedClipRects) {} |
| 48 virtual void appendEndClipItem() {} | 48 virtual void appendEndClipItem() {} |
| 49 virtual void appendClipPathItem(const SkPath&, SkRegion::Op, bool antialias) { | 49 virtual void appendClipPathItem(const SkPath&, SkRegion::Op, bool antialias) { |
| 50 } | 50 } |
| 51 virtual void appendEndClipPathItem() {} | 51 virtual void appendEndClipPathItem() {} |
| 52 virtual void appendFloatClipItem(const WebFloatRect& clipRect) {} | 52 virtual void appendFloatClipItem(const WebFloatRect& clipRect) {} |
| 53 virtual void appendEndFloatClipItem() {} | 53 virtual void appendEndFloatClipItem() {} |
| 54 virtual void appendTransformItem(const SkMatrix44&) {} | 54 virtual void appendTransformItem(const SkMatrix44&) {} |
| (...skipping 21 matching lines...) Expand all Loading... |
| 76 // Specifies the color space that the inputs of this display list were | 76 // Specifies the color space that the inputs of this display list were |
| 77 // pre-converted into. If this is specified, then rasterization must not | 77 // pre-converted into. If this is specified, then rasterization must not |
| 78 // perform any color correction, and the result must be interpreted as being | 78 // perform any color correction, and the result must be interpreted as being |
| 79 // in this color space. | 79 // in this color space. |
| 80 virtual void setImpliedColorSpace(const gfx::ColorSpace&) {} | 80 virtual void setImpliedColorSpace(const gfx::ColorSpace&) {} |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 } // namespace blink | 83 } // namespace blink |
| 84 | 84 |
| 85 #endif // WebDisplayItemList_h | 85 #endif // WebDisplayItemList_h |
| OLD | NEW |