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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 | 369 |
370 void ResetChangeTracking(); | 370 void ResetChangeTracking(); |
371 | 371 |
372 virtual SimpleEnclosedRegion VisibleOpaqueRegion() const; | 372 virtual SimpleEnclosedRegion VisibleOpaqueRegion() const; |
373 | 373 |
374 virtual void DidBecomeActive() {} | 374 virtual void DidBecomeActive() {} |
375 | 375 |
376 virtual void DidBeginTracing(); | 376 virtual void DidBeginTracing(); |
377 | 377 |
378 // Release resources held by this layer. Called when the output surface | 378 // Release resources held by this layer. Called when the output surface |
379 // that rendered this layer was lost or a rendering mode switch has occured. | 379 // that rendered this layer was lost. |
380 virtual void ReleaseResources(); | 380 virtual void ReleaseResources(); |
381 | 381 |
382 // Recreate resources that are required after they were released by a | 382 // Release tile resources held by this layer. Called when a rendering mode |
383 // ReleaseResources call. | 383 // switch has occured and tiles are no longer valid. |
384 virtual void RecreateResources(); | 384 virtual void ReleaseTileResources(); |
| 385 |
| 386 // Recreate tile resources held by this layer after they were released by a |
| 387 // ReleaseTileResources call. |
| 388 virtual void RecreateTileResources(); |
385 | 389 |
386 virtual std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl); | 390 virtual std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl); |
387 virtual void PushPropertiesTo(LayerImpl* layer); | 391 virtual void PushPropertiesTo(LayerImpl* layer); |
388 | 392 |
389 virtual void GetAllPrioritizedTilesForTracing( | 393 virtual void GetAllPrioritizedTilesForTracing( |
390 std::vector<PrioritizedTile>* prioritized_tiles) const; | 394 std::vector<PrioritizedTile>* prioritized_tiles) const; |
391 virtual void AsValueInto(base::trace_event::TracedValue* dict) const; | 395 virtual void AsValueInto(base::trace_event::TracedValue* dict) const; |
392 | 396 |
393 virtual size_t GPUMemoryUsageInBytes() const; | 397 virtual size_t GPUMemoryUsageInBytes() const; |
394 | 398 |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
568 bool scrolls_drawn_descendant_ : 1; | 572 bool scrolls_drawn_descendant_ : 1; |
569 bool has_will_change_transform_hint_ : 1; | 573 bool has_will_change_transform_hint_ : 1; |
570 bool needs_push_properties_ : 1; | 574 bool needs_push_properties_ : 1; |
571 | 575 |
572 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 576 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
573 }; | 577 }; |
574 | 578 |
575 } // namespace cc | 579 } // namespace cc |
576 | 580 |
577 #endif // CC_LAYERS_LAYER_IMPL_H_ | 581 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |