| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 139 |
| 140 // The position of the original primitive inside the total bounds. | 140 // The position of the original primitive inside the total bounds. |
| 141 virtual void setFiltersOrigin(const WebFloatPoint&) = 0; | 141 virtual void setFiltersOrigin(const WebFloatPoint&) = 0; |
| 142 | 142 |
| 143 // Clear the background filters in use by passing in a newly instantiated | 143 // Clear the background filters in use by passing in a newly instantiated |
| 144 // FilterOperations object. | 144 // FilterOperations object. |
| 145 // TODO(loyso): This should use CompositorFilterOperation. crbug.com/584551 | 145 // TODO(loyso): This should use CompositorFilterOperation. crbug.com/584551 |
| 146 virtual void setBackgroundFilters(const cc::FilterOperations&) = 0; | 146 virtual void setBackgroundFilters(const cc::FilterOperations&) = 0; |
| 147 | 147 |
| 148 // Returns true if this layer has any active animations - useful for tests. | 148 // Returns true if this layer has any active animations - useful for tests. |
| 149 virtual bool hasActiveAnimationForTesting() = 0; | 149 virtual bool hasTickingAnimationForTesting() = 0; |
| 150 | 150 |
| 151 // If a scroll parent is set, this layer will inherit its parent's scroll | 151 // If a scroll parent is set, this layer will inherit its parent's scroll |
| 152 // delta and offset even though it will not be a descendant of the scroll | 152 // delta and offset even though it will not be a descendant of the scroll |
| 153 // in the layer hierarchy. | 153 // in the layer hierarchy. |
| 154 virtual void setScrollParent(WebLayer*) = 0; | 154 virtual void setScrollParent(WebLayer*) = 0; |
| 155 | 155 |
| 156 // A layer will not respect any clips established by layers between it and | 156 // A layer will not respect any clips established by layers between it and |
| 157 // its nearest clipping ancestor. Note, the clip parent must be an ancestor. | 157 // its nearest clipping ancestor. Note, the clip parent must be an ancestor. |
| 158 // This is not a requirement of the scroll parent. | 158 // This is not a requirement of the scroll parent. |
| 159 virtual void setClipParent(WebLayer*) = 0; | 159 virtual void setClipParent(WebLayer*) = 0; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 virtual uint32_t compositorMutableProperties() const = 0; | 219 virtual uint32_t compositorMutableProperties() const = 0; |
| 220 | 220 |
| 221 virtual void setHasWillChangeTransformHint(bool) = 0; | 221 virtual void setHasWillChangeTransformHint(bool) = 0; |
| 222 virtual void setPreferredRasterBounds(const WebSize&) = 0; | 222 virtual void setPreferredRasterBounds(const WebSize&) = 0; |
| 223 virtual void clearPreferredRasterBounds() = 0; | 223 virtual void clearPreferredRasterBounds() = 0; |
| 224 }; | 224 }; |
| 225 | 225 |
| 226 } // namespace blink | 226 } // namespace blink |
| 227 | 227 |
| 228 #endif // WebLayer_h | 228 #endif // WebLayer_h |
| OLD | NEW |