OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_LAYERS_LAYER_IMPL_H_ | 5 #ifndef CC_LAYERS_LAYER_IMPL_H_ |
6 #define CC_LAYERS_LAYER_IMPL_H_ | 6 #define CC_LAYERS_LAYER_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 | 376 |
377 // Release resources held by this layer. Called when the output surface | 377 // Release resources held by this layer. Called when the output surface |
378 // that rendered this layer was lost or a rendering mode switch has occured. | 378 // that rendered this layer was lost or a rendering mode switch has occured. |
379 virtual void ReleaseResources(); | 379 virtual void ReleaseResources(); |
380 | 380 |
381 // Recreate resources that are required after they were released by a | 381 // Recreate resources that are required after they were released by a |
382 // ReleaseResources call. | 382 // ReleaseResources call. |
383 virtual void RecreateResources(); | 383 virtual void RecreateResources(); |
384 | 384 |
385 virtual std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl); | 385 virtual std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl); |
| 386 virtual bool IsSnapped(); |
386 virtual void PushPropertiesTo(LayerImpl* layer); | 387 virtual void PushPropertiesTo(LayerImpl* layer); |
387 | 388 |
388 virtual void GetAllPrioritizedTilesForTracing( | 389 virtual void GetAllPrioritizedTilesForTracing( |
389 std::vector<PrioritizedTile>* prioritized_tiles) const; | 390 std::vector<PrioritizedTile>* prioritized_tiles) const; |
390 virtual void AsValueInto(base::trace_event::TracedValue* dict) const; | 391 virtual void AsValueInto(base::trace_event::TracedValue* dict) const; |
391 | 392 |
392 virtual size_t GPUMemoryUsageInBytes() const; | 393 virtual size_t GPUMemoryUsageInBytes() const; |
393 | 394 |
394 void SetNeedsPushProperties(); | 395 void SetNeedsPushProperties(); |
395 | 396 |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
578 bool scrolls_drawn_descendant_ : 1; | 579 bool scrolls_drawn_descendant_ : 1; |
579 bool has_will_change_transform_hint_ : 1; | 580 bool has_will_change_transform_hint_ : 1; |
580 bool needs_push_properties_ : 1; | 581 bool needs_push_properties_ : 1; |
581 | 582 |
582 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 583 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
583 }; | 584 }; |
584 | 585 |
585 } // namespace cc | 586 } // namespace cc |
586 | 587 |
587 #endif // CC_LAYERS_LAYER_IMPL_H_ | 588 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |