| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 #include "cc/resources/resource_provider.h" | 28 #include "cc/resources/resource_provider.h" |
| 29 #include "skia/ext/refptr.h" | 29 #include "skia/ext/refptr.h" |
| 30 #include "third_party/skia/include/core/SkColor.h" | 30 #include "third_party/skia/include/core/SkColor.h" |
| 31 #include "third_party/skia/include/core/SkImageFilter.h" | 31 #include "third_party/skia/include/core/SkImageFilter.h" |
| 32 #include "third_party/skia/include/core/SkPicture.h" | 32 #include "third_party/skia/include/core/SkPicture.h" |
| 33 #include "ui/gfx/rect.h" | 33 #include "ui/gfx/rect.h" |
| 34 #include "ui/gfx/rect_f.h" | 34 #include "ui/gfx/rect_f.h" |
| 35 #include "ui/gfx/transform.h" | 35 #include "ui/gfx/transform.h" |
| 36 | 36 |
| 37 namespace base { | 37 namespace base { |
| 38 namespace debug { |
| 39 class ConvertableToTraceFormat; |
| 40 } |
| 41 |
| 38 class DictionaryValue; | 42 class DictionaryValue; |
| 39 } | 43 } |
| 40 | 44 |
| 41 namespace cc { | 45 namespace cc { |
| 42 | 46 |
| 43 class LayerTreeHostImpl; | 47 class LayerTreeHostImpl; |
| 44 class LayerTreeImpl; | 48 class LayerTreeImpl; |
| 45 class MicroBenchmarkImpl; | 49 class MicroBenchmarkImpl; |
| 46 class QuadSink; | 50 class QuadSink; |
| 47 class Renderer; | 51 class Renderer; |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 | 491 |
| 488 scoped_ptr<base::Value> AsValue() const; | 492 scoped_ptr<base::Value> AsValue() const; |
| 489 virtual size_t GPUMemoryUsageInBytes() const; | 493 virtual size_t GPUMemoryUsageInBytes() const; |
| 490 | 494 |
| 491 // TODO(danakj): Be true only if needed. crbug.com/259511 | 495 // TODO(danakj): Be true only if needed. crbug.com/259511 |
| 492 bool needs_push_properties() const { return true; } | 496 bool needs_push_properties() const { return true; } |
| 493 bool descendant_needs_push_properties() const { return true; } | 497 bool descendant_needs_push_properties() const { return true; } |
| 494 | 498 |
| 495 virtual void RunMicroBenchmark(MicroBenchmarkImpl* benchmark); | 499 virtual void RunMicroBenchmark(MicroBenchmarkImpl* benchmark); |
| 496 | 500 |
| 501 virtual void SetDebugInfo( |
| 502 scoped_refptr<base::debug::ConvertableToTraceFormat> other); |
| 503 |
| 497 protected: | 504 protected: |
| 498 LayerImpl(LayerTreeImpl* layer_impl, int id); | 505 LayerImpl(LayerTreeImpl* layer_impl, int id); |
| 499 | 506 |
| 500 // Get the color and size of the layer's debug border. | 507 // Get the color and size of the layer's debug border. |
| 501 virtual void GetDebugBorderProperties(SkColor* color, float* width) const; | 508 virtual void GetDebugBorderProperties(SkColor* color, float* width) const; |
| 502 | 509 |
| 503 void AppendDebugBorderQuad(QuadSink* quad_sink, | 510 void AppendDebugBorderQuad(QuadSink* quad_sink, |
| 504 const SharedQuadState* shared_quad_state, | 511 const SharedQuadState* shared_quad_state, |
| 505 AppendQuadsData* append_quads_data) const; | 512 AppendQuadsData* append_quads_data) const; |
| 506 void AppendDebugBorderQuad(QuadSink* quad_sink, | 513 void AppendDebugBorderQuad(QuadSink* quad_sink, |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 // tree synchronization. | 632 // tree synchronization. |
| 626 ScrollbarLayerImplBase* horizontal_scrollbar_layer_; | 633 ScrollbarLayerImplBase* horizontal_scrollbar_layer_; |
| 627 ScrollbarLayerImplBase* vertical_scrollbar_layer_; | 634 ScrollbarLayerImplBase* vertical_scrollbar_layer_; |
| 628 | 635 |
| 629 ScopedPtrVector<CopyOutputRequest> copy_requests_; | 636 ScopedPtrVector<CopyOutputRequest> copy_requests_; |
| 630 | 637 |
| 631 // Group of properties that need to be computed based on the layer tree | 638 // Group of properties that need to be computed based on the layer tree |
| 632 // hierarchy before layers can be drawn. | 639 // hierarchy before layers can be drawn. |
| 633 DrawProperties<LayerImpl> draw_properties_; | 640 DrawProperties<LayerImpl> draw_properties_; |
| 634 | 641 |
| 642 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; |
| 643 |
| 635 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 644 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 636 }; | 645 }; |
| 637 | 646 |
| 638 } // namespace cc | 647 } // namespace cc |
| 639 | 648 |
| 640 #endif // CC_LAYERS_LAYER_IMPL_H_ | 649 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |