| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 virtual bool drawsContent() const = 0; | 87 virtual bool drawsContent() const = 0; |
| 88 | 88 |
| 89 // Sets whether the layer's transform should be flattened. | 89 // Sets whether the layer's transform should be flattened. |
| 90 virtual void setShouldFlattenTransform(bool) = 0; | 90 virtual void setShouldFlattenTransform(bool) = 0; |
| 91 | 91 |
| 92 // Sets the id of the layer's 3d rendering context. Layers in the same 3d | 92 // Sets the id of the layer's 3d rendering context. Layers in the same 3d |
| 93 // rendering context id are sorted with one another according to their 3d | 93 // rendering context id are sorted with one another according to their 3d |
| 94 // position rather than their tree order. | 94 // position rather than their tree order. |
| 95 virtual void setRenderingContext(int id) = 0; | 95 virtual void setRenderingContext(int id) = 0; |
| 96 | 96 |
| 97 // Mark that this layer should use its parent's transform and double-sided | |
| 98 // properties in determining this layer's backface visibility instead of | |
| 99 // using its own properties. If this property is set, this layer must | |
| 100 // have a parent, and the parent may not have this property set. | |
| 101 // Note: This API is to work around issues with visibility the handling of | |
| 102 // WebKit layers that have a contents layer (canvas, plugin, WebGL, video, | |
| 103 // etc). | |
| 104 virtual void setUseParentBackfaceVisibility(bool) = 0; | |
| 105 | |
| 106 virtual void setBackgroundColor(WebColor) = 0; | 97 virtual void setBackgroundColor(WebColor) = 0; |
| 107 virtual WebColor backgroundColor() const = 0; | 98 virtual WebColor backgroundColor() const = 0; |
| 108 | 99 |
| 109 // Removes all animations with the given id. | 100 // Removes all animations with the given id. |
| 110 virtual void removeAnimation(int animationId) = 0; | 101 virtual void removeAnimation(int animationId) = 0; |
| 111 | 102 |
| 112 // Pauses all animations with the given id. | 103 // Pauses all animations with the given id. |
| 113 virtual void pauseAnimation(int animationId, double timeOffset) = 0; | 104 virtual void pauseAnimation(int animationId, double timeOffset) = 0; |
| 114 | 105 |
| 115 // Returns true if this layer has any active animations - useful for tests. | 106 // Returns true if this layer has any active animations - useful for tests. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 143 // so, but this is to facilitate benchmarks and tests. | 134 // so, but this is to facilitate benchmarks and tests. |
| 144 virtual void setForceRenderSurface(bool) = 0; | 135 virtual void setForceRenderSurface(bool) = 0; |
| 145 | 136 |
| 146 // True if the layer is not part of a tree attached to a WebLayerTreeView. | 137 // True if the layer is not part of a tree attached to a WebLayerTreeView. |
| 147 virtual bool isOrphan() const = 0; | 138 virtual bool isOrphan() const = 0; |
| 148 }; | 139 }; |
| 149 | 140 |
| 150 } // namespace blink | 141 } // namespace blink |
| 151 | 142 |
| 152 #endif // SKY_ENGINE_PUBLIC_PLATFORM_WEBLAYER_H_ | 143 #endif // SKY_ENGINE_PUBLIC_PLATFORM_WEBLAYER_H_ |
| OLD | NEW |