OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
11 * notice, this list of conditions and the following disclaimer in the | 11 * notice, this list of conditions and the following disclaimer in the |
12 * documentation and/or other materials provided with the distribution. | 12 * documentation and/or other materials provided with the distribution. |
13 * | 13 * |
14 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY | 14 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY |
15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | 15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
16 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | 16 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
17 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY | 17 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY |
18 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | 18 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
19 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 19 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
20 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 20 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef WebLayer_h | 26 #ifndef WebLayer_h |
27 #define WebLayer_h | 27 #define WebLayer_h |
28 | 28 |
29 #include "WebAnimation.h" | 29 #include "WebAnimation.h" |
30 #include "WebBlendMode.h" | |
30 #include "WebColor.h" | 31 #include "WebColor.h" |
31 #include "WebCommon.h" | 32 #include "WebCommon.h" |
32 #include "WebCompositingReasons.h" | 33 #include "WebCompositingReasons.h" |
33 #include "WebPoint.h" | 34 #include "WebPoint.h" |
34 #include "WebRect.h" | 35 #include "WebRect.h" |
35 #include "WebString.h" | 36 #include "WebString.h" |
36 #include "WebVector.h" | 37 #include "WebVector.h" |
37 | 38 |
38 class SkMatrix44; | 39 class SkMatrix44; |
39 class SkImageFilter; | 40 class SkImageFilter; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
79 | 80 |
80 virtual void setMasksToBounds(bool) = 0; | 81 virtual void setMasksToBounds(bool) = 0; |
81 virtual bool masksToBounds() const = 0; | 82 virtual bool masksToBounds() const = 0; |
82 | 83 |
83 virtual void setMaskLayer(WebLayer*) = 0; | 84 virtual void setMaskLayer(WebLayer*) = 0; |
84 virtual void setReplicaLayer(WebLayer*) = 0; | 85 virtual void setReplicaLayer(WebLayer*) = 0; |
85 | 86 |
86 virtual void setOpacity(float) = 0; | 87 virtual void setOpacity(float) = 0; |
87 virtual float opacity() const = 0; | 88 virtual float opacity() const = 0; |
88 | 89 |
90 // The blending formula to be used for mixing colors of | |
91 // FIXME: Make pure virtual after implementation lands. | |
92 virtual void setBlendMode(WebBlendMode) { } | |
93 virtual WebBlendMode blendMode() const { return WebBlendModeNormal; } | |
94 | |
95 // The layers within an isolated group should be composited over | |
96 // a transparent black initial backdrop. It will create a separate rendering | |
97 // surfece when required. http://dev.w3.org/fxtf/compositing-1/ | |
enne (OOO)
2013/11/07 22:59:07
Typo, although I think saying that it will create
rosca
2013/11/08 15:36:32
I removed the comments, I think the functions are
| |
98 // FIXME: Make pure virtual after implementation lands. | |
99 virtual void setIsRootForIsolatedGroup(bool) { } | |
100 virtual bool isRootForIsolatedGroup() { return false; } | |
101 | |
89 virtual void setOpaque(bool) = 0; | 102 virtual void setOpaque(bool) = 0; |
90 virtual bool opaque() const = 0; | 103 virtual bool opaque() const = 0; |
91 | 104 |
92 virtual void setPosition(const WebFloatPoint&) = 0; | 105 virtual void setPosition(const WebFloatPoint&) = 0; |
93 virtual WebFloatPoint position() const = 0; | 106 virtual WebFloatPoint position() const = 0; |
94 | 107 |
95 virtual void setSublayerTransform(const SkMatrix44&) = 0; | 108 virtual void setSublayerTransform(const SkMatrix44&) = 0; |
96 virtual SkMatrix44 sublayerTransform() const = 0; | 109 virtual SkMatrix44 sublayerTransform() const = 0; |
97 | 110 |
98 virtual void setTransform(const SkMatrix44&) = 0; | 111 virtual void setTransform(const SkMatrix44&) = 0; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
214 | 227 |
215 // True if the layer is not part of a tree attached to a WebLayerTreeView. | 228 // True if the layer is not part of a tree attached to a WebLayerTreeView. |
216 virtual bool isOrphan() const = 0; | 229 virtual bool isOrphan() const = 0; |
217 | 230 |
218 virtual void setWebLayerClient(WebLayerClient*) = 0; | 231 virtual void setWebLayerClient(WebLayerClient*) = 0; |
219 }; | 232 }; |
220 | 233 |
221 } // namespace WebKit | 234 } // namespace WebKit |
222 | 235 |
223 #endif // WebLayer_h | 236 #endif // WebLayer_h |
OLD | NEW |