| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 class WebLayer { | 55 class WebLayer { |
| 56 public: | 56 public: |
| 57 virtual ~WebLayer() { } | 57 virtual ~WebLayer() { } |
| 58 | 58 |
| 59 // Returns a positive ID that will be unique across all WebLayers allocated
in this process. | 59 // Returns a positive ID that will be unique across all WebLayers allocated
in this process. |
| 60 virtual int id() const = 0; | 60 virtual int id() const = 0; |
| 61 | 61 |
| 62 // Sets a region of the layer as invalid, i.e. needs to update its content. | 62 // Sets a region of the layer as invalid, i.e. needs to update its content. |
| 63 virtual void invalidateRect(const WebRect&) = 0; | 63 virtual void invalidateRect(const WebRect&) = 0; |
| 64 virtual void invalidateRects(const std::vector<blink::WebRect>&) = 0; |
| 64 | 65 |
| 65 // Sets the entire layer as invalid, i.e. needs to update its content. | 66 // Sets the entire layer as invalid, i.e. needs to update its content. |
| 66 virtual void invalidate() = 0; | 67 virtual void invalidate() = 0; |
| 67 | 68 |
| 68 // These functions do not take ownership of the WebLayer* parameter. | 69 // These functions do not take ownership of the WebLayer* parameter. |
| 69 virtual void addChild(WebLayer*) = 0; | 70 virtual void addChild(WebLayer*) = 0; |
| 70 virtual void insertChild(WebLayer*, size_t index) = 0; | 71 virtual void insertChild(WebLayer*, size_t index) = 0; |
| 71 virtual void replaceChild(WebLayer* reference, WebLayer* newLayer) = 0; | 72 virtual void replaceChild(WebLayer* reference, WebLayer* newLayer) = 0; |
| 72 virtual void removeFromParent() = 0; | 73 virtual void removeFromParent() = 0; |
| 73 virtual void removeAllChildren() = 0; | 74 virtual void removeAllChildren() = 0; |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 | 203 |
| 203 virtual void setCompositorMutableProperties(uint32_t) = 0; | 204 virtual void setCompositorMutableProperties(uint32_t) = 0; |
| 204 virtual uint32_t compositorMutableProperties() const = 0; | 205 virtual uint32_t compositorMutableProperties() const = 0; |
| 205 | 206 |
| 206 virtual void setHasWillChangeTransformHint(bool) = 0; | 207 virtual void setHasWillChangeTransformHint(bool) = 0; |
| 207 }; | 208 }; |
| 208 | 209 |
| 209 } // namespace blink | 210 } // namespace blink |
| 210 | 211 |
| 211 #endif // WebLayer_h | 212 #endif // WebLayer_h |
| OLD | NEW |