| 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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 virtual void OnOutputSurfaceCreated() {} | 365 virtual void OnOutputSurfaceCreated() {} |
| 366 | 366 |
| 367 virtual scoped_refptr<base::debug::ConvertableToTraceFormat> TakeDebugInfo(); | 367 virtual scoped_refptr<base::debug::ConvertableToTraceFormat> TakeDebugInfo(); |
| 368 | 368 |
| 369 void SetLayerClient(LayerClient* client) { client_ = client; } | 369 void SetLayerClient(LayerClient* client) { client_ = client; } |
| 370 | 370 |
| 371 virtual void PushPropertiesTo(LayerImpl* layer); | 371 virtual void PushPropertiesTo(LayerImpl* layer); |
| 372 | 372 |
| 373 void CreateRenderSurface(); | 373 void CreateRenderSurface(); |
| 374 void ClearRenderSurface(); | 374 void ClearRenderSurface(); |
| 375 void ClearRenderSurfaceLayerList(); |
| 375 | 376 |
| 376 // The contents scale converts from logical, non-page-scaled pixels to target | 377 // The contents scale converts from logical, non-page-scaled pixels to target |
| 377 // pixels. The contents scale is 1 for the root layer as it is already in | 378 // pixels. The contents scale is 1 for the root layer as it is already in |
| 378 // physical pixels. By default contents scale is forced to be 1 except for | 379 // physical pixels. By default contents scale is forced to be 1 except for |
| 379 // subclasses of ContentsScalingLayer. | 380 // subclasses of ContentsScalingLayer. |
| 380 float contents_scale_x() const { return draw_properties_.contents_scale_x; } | 381 float contents_scale_x() const { return draw_properties_.contents_scale_x; } |
| 381 float contents_scale_y() const { return draw_properties_.contents_scale_y; } | 382 float contents_scale_y() const { return draw_properties_.contents_scale_y; } |
| 382 gfx::Size content_bounds() const { return draw_properties_.content_bounds; } | 383 gfx::Size content_bounds() const { return draw_properties_.content_bounds; } |
| 383 | 384 |
| 384 virtual void CalculateContentsScale(float ideal_contents_scale, | 385 virtual void CalculateContentsScale(float ideal_contents_scale, |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 624 DrawProperties<Layer> draw_properties_; | 625 DrawProperties<Layer> draw_properties_; |
| 625 | 626 |
| 626 PaintProperties paint_properties_; | 627 PaintProperties paint_properties_; |
| 627 | 628 |
| 628 DISALLOW_COPY_AND_ASSIGN(Layer); | 629 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 629 }; | 630 }; |
| 630 | 631 |
| 631 } // namespace cc | 632 } // namespace cc |
| 632 | 633 |
| 633 #endif // CC_LAYERS_LAYER_H_ | 634 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |