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 |
(...skipping 13 matching lines...) Expand all Loading... |
24 */ | 24 */ |
25 | 25 |
26 #ifndef WebLayer_h | 26 #ifndef WebLayer_h |
27 #define WebLayer_h | 27 #define WebLayer_h |
28 | 28 |
29 #include "WebBlendMode.h" | 29 #include "WebBlendMode.h" |
30 #include "WebColor.h" | 30 #include "WebColor.h" |
31 #include "WebCommon.h" | 31 #include "WebCommon.h" |
32 #include "WebDoublePoint.h" | 32 #include "WebDoublePoint.h" |
33 #include "WebFloatPoint3D.h" | 33 #include "WebFloatPoint3D.h" |
| 34 #include "WebFloatSize.h" |
34 #include "WebPoint.h" | 35 #include "WebPoint.h" |
35 #include "WebRect.h" | 36 #include "WebRect.h" |
36 #include "WebSize.h" | 37 #include "WebSize.h" |
37 #include "WebString.h" | 38 #include "WebString.h" |
38 #include "WebVector.h" | 39 #include "WebVector.h" |
39 | 40 |
40 class SkMatrix44; | 41 class SkMatrix44; |
41 class SkImageFilter; | 42 class SkImageFilter; |
42 | 43 |
43 namespace cc { | 44 namespace cc { |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 // etc). | 129 // etc). |
129 virtual void setUseParentBackfaceVisibility(bool) = 0; | 130 virtual void setUseParentBackfaceVisibility(bool) = 0; |
130 | 131 |
131 virtual void setBackgroundColor(WebColor) = 0; | 132 virtual void setBackgroundColor(WebColor) = 0; |
132 virtual WebColor backgroundColor() const = 0; | 133 virtual WebColor backgroundColor() const = 0; |
133 | 134 |
134 // Clear the filters in use by passing in a newly instantiated | 135 // Clear the filters in use by passing in a newly instantiated |
135 // FilterOperations object. | 136 // FilterOperations object. |
136 virtual void setFilters(const cc::FilterOperations&) = 0; | 137 virtual void setFilters(const cc::FilterOperations&) = 0; |
137 | 138 |
| 139 // The position of the original primitive inside the total bounds. |
| 140 virtual void setFiltersOrigin(const WebFloatPoint&) = 0; |
| 141 |
138 // Clear the background filters in use by passing in a newly instantiated | 142 // Clear the background filters in use by passing in a newly instantiated |
139 // FilterOperations object. | 143 // FilterOperations object. |
140 // TODO(loyso): This should use CompositorFilterOperation. crbug.com/584551 | 144 // TODO(loyso): This should use CompositorFilterOperation. crbug.com/584551 |
141 virtual void setBackgroundFilters(const cc::FilterOperations&) = 0; | 145 virtual void setBackgroundFilters(const cc::FilterOperations&) = 0; |
142 | 146 |
143 // Returns true if this layer has any active animations - useful for tests. | 147 // Returns true if this layer has any active animations - useful for tests. |
144 virtual bool hasActiveAnimationForTesting() = 0; | 148 virtual bool hasActiveAnimationForTesting() = 0; |
145 | 149 |
146 // If a scroll parent is set, this layer will inherit its parent's scroll | 150 // If a scroll parent is set, this layer will inherit its parent's scroll |
147 // delta and offset even though it will not be a descendant of the scroll | 151 // delta and offset even though it will not be a descendant of the scroll |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 | 207 |
204 virtual void setCompositorMutableProperties(uint32_t) = 0; | 208 virtual void setCompositorMutableProperties(uint32_t) = 0; |
205 virtual uint32_t compositorMutableProperties() const = 0; | 209 virtual uint32_t compositorMutableProperties() const = 0; |
206 | 210 |
207 virtual void setHasWillChangeTransformHint(bool) = 0; | 211 virtual void setHasWillChangeTransformHint(bool) = 0; |
208 }; | 212 }; |
209 | 213 |
210 } // namespace blink | 214 } // namespace blink |
211 | 215 |
212 #endif // WebLayer_h | 216 #endif // WebLayer_h |
OLD | NEW |