OLD | NEW |
1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CC_LAYER_H_ | 5 #ifndef CC_LAYER_H_ |
6 #define CC_LAYER_H_ | 6 #define CC_LAYER_H_ |
7 | 7 |
8 #include <public/WebFilterOperations.h> | 8 #include <public/WebFilterOperations.h> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 | 270 |
271 virtual void notifyAnimationStarted(const AnimationEvent&, double wallClockT
ime); | 271 virtual void notifyAnimationStarted(const AnimationEvent&, double wallClockT
ime); |
272 virtual void notifyAnimationFinished(double wallClockTime); | 272 virtual void notifyAnimationFinished(double wallClockTime); |
273 | 273 |
274 virtual Region visibleContentOpaqueRegion() const; | 274 virtual Region visibleContentOpaqueRegion() const; |
275 | 275 |
276 virtual ScrollbarLayer* toScrollbarLayer(); | 276 virtual ScrollbarLayer* toScrollbarLayer(); |
277 | 277 |
278 gfx::Rect layerRectToContentRect(const gfx::RectF& layerRect) const; | 278 gfx::Rect layerRectToContentRect(const gfx::RectF& layerRect) const; |
279 | 279 |
| 280 // In impl-side painting, this returns true if this layer type is not |
| 281 // compatible with the main thread running freely, such as a double-buffered |
| 282 // canvas that doesn't want to be triple-buffered across all three trees. |
| 283 virtual bool blocksPendingCommit() const; |
| 284 |
280 protected: | 285 protected: |
281 friend class LayerImpl; | 286 friend class LayerImpl; |
282 friend class TreeSynchronizer; | 287 friend class TreeSynchronizer; |
283 virtual ~Layer(); | 288 virtual ~Layer(); |
284 | 289 |
285 Layer(); | 290 Layer(); |
286 | 291 |
287 void setNeedsCommit(); | 292 void setNeedsCommit(); |
288 void setNeedsFullTreeSync(); | 293 void setNeedsFullTreeSync(); |
289 | 294 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 WebKit::WebLayerScrollClient* m_layerScrollClient; | 383 WebKit::WebLayerScrollClient* m_layerScrollClient; |
379 | 384 |
380 DrawProperties<Layer, RenderSurface> m_drawProperties; | 385 DrawProperties<Layer, RenderSurface> m_drawProperties; |
381 }; | 386 }; |
382 | 387 |
383 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped
_refptr<Layer> >::iterator, void*); | 388 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped
_refptr<Layer> >::iterator, void*); |
384 | 389 |
385 } // namespace cc | 390 } // namespace cc |
386 | 391 |
387 #endif // CC_LAYER_H_ | 392 #endif // CC_LAYER_H_ |
OLD | NEW |