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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 // WebFilterOperations object. | 129 // WebFilterOperations object. |
130 virtual void setFilters(const WebFilterOperations&) = 0; | 130 virtual void setFilters(const WebFilterOperations&) = 0; |
131 | 131 |
132 // Apply filters to pixels that show through the background of this layer. | 132 // Apply filters to pixels that show through the background of this layer. |
133 // Note: These filters are only possible on layers that are drawn directly | 133 // Note: These filters are only possible on layers that are drawn directly |
134 // to a root render surface with an opaque background. This means if an | 134 // to a root render surface with an opaque background. This means if an |
135 // ancestor of the background-filtered layer sets certain properties | 135 // ancestor of the background-filtered layer sets certain properties |
136 // (opacity, transforms), it may conflict and hide the background filters. | 136 // (opacity, transforms), it may conflict and hide the background filters. |
137 virtual void setBackgroundFilters(const WebFilterOperations&) = 0; | 137 virtual void setBackgroundFilters(const WebFilterOperations&) = 0; |
138 | 138 |
| 139 virtual void setHasGpuRasterizationHint(bool) = 0; |
| 140 |
139 // An animation delegate is notified when animations are started and | 141 // An animation delegate is notified when animations are started and |
140 // stopped. The WebLayer does not take ownership of the delegate, and it is | 142 // stopped. The WebLayer does not take ownership of the delegate, and it is |
141 // the responsibility of the client to reset the layer's delegate before | 143 // the responsibility of the client to reset the layer's delegate before |
142 // deleting the delegate. | 144 // deleting the delegate. |
143 virtual void setAnimationDelegate(WebAnimationDelegate*) = 0; | 145 virtual void setAnimationDelegate(WebAnimationDelegate*) = 0; |
144 | 146 |
145 | 147 |
146 // Returns false if the animation cannot be added. | 148 // Returns false if the animation cannot be added. |
147 // Takes ownership of the WebAnimation object. | 149 // Takes ownership of the WebAnimation object. |
148 virtual bool addAnimation(WebAnimation*) = 0; | 150 virtual bool addAnimation(WebAnimation*) = 0; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 | 217 |
216 // True if the layer is not part of a tree attached to a WebLayerTreeView. | 218 // True if the layer is not part of a tree attached to a WebLayerTreeView. |
217 virtual bool isOrphan() const = 0; | 219 virtual bool isOrphan() const = 0; |
218 | 220 |
219 virtual void setWebLayerClient(WebLayerClient*) = 0; | 221 virtual void setWebLayerClient(WebLayerClient*) = 0; |
220 }; | 222 }; |
221 | 223 |
222 } // namespace blink | 224 } // namespace blink |
223 | 225 |
224 #endif // WebLayer_h | 226 #endif // WebLayer_h |
OLD | NEW |