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_LAYERS_LAYER_H_ | 5 #ifndef CC_LAYERS_LAYER_H_ |
6 #define CC_LAYERS_LAYER_H_ | 6 #define CC_LAYERS_LAYER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 virtual bool DrawsContent() const; | 355 virtual bool DrawsContent() const; |
356 virtual void SavePaintProperties(); | 356 virtual void SavePaintProperties(); |
357 // Returns true iff any resources were updated that need to be committed. | 357 // Returns true iff any resources were updated that need to be committed. |
358 virtual bool Update(ResourceUpdateQueue* queue, | 358 virtual bool Update(ResourceUpdateQueue* queue, |
359 const OcclusionTracker* occlusion); | 359 const OcclusionTracker* occlusion); |
360 virtual bool NeedMoreUpdates(); | 360 virtual bool NeedMoreUpdates(); |
361 virtual void SetIsMask(bool is_mask) {} | 361 virtual void SetIsMask(bool is_mask) {} |
362 virtual void ReduceMemoryUsage() {} | 362 virtual void ReduceMemoryUsage() {} |
363 virtual void OnOutputSurfaceCreated() {} | 363 virtual void OnOutputSurfaceCreated() {} |
364 | 364 |
365 virtual std::string DebugName(); | |
366 virtual scoped_refptr<base::debug::ConvertableToTraceFormat> TakeDebugInfo(); | 365 virtual scoped_refptr<base::debug::ConvertableToTraceFormat> TakeDebugInfo(); |
367 | 366 |
368 void SetLayerClient(LayerClient* client) { client_ = client; } | 367 void SetLayerClient(LayerClient* client) { client_ = client; } |
369 | 368 |
370 virtual void PushPropertiesTo(LayerImpl* layer); | 369 virtual void PushPropertiesTo(LayerImpl* layer); |
371 | 370 |
372 void CreateRenderSurface(); | 371 void CreateRenderSurface(); |
373 void ClearRenderSurface(); | 372 void ClearRenderSurface(); |
374 | 373 |
375 // The contents scale converts from logical, non-page-scaled pixels to target | 374 // The contents scale converts from logical, non-page-scaled pixels to target |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
621 DrawProperties<Layer> draw_properties_; | 620 DrawProperties<Layer> draw_properties_; |
622 | 621 |
623 PaintProperties paint_properties_; | 622 PaintProperties paint_properties_; |
624 | 623 |
625 DISALLOW_COPY_AND_ASSIGN(Layer); | 624 DISALLOW_COPY_AND_ASSIGN(Layer); |
626 }; | 625 }; |
627 | 626 |
628 } // namespace cc | 627 } // namespace cc |
629 | 628 |
630 #endif // CC_LAYERS_LAYER_H_ | 629 #endif // CC_LAYERS_LAYER_H_ |
OLD | NEW |