| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 #include "cc/layers/heads_up_display_layer.h" | 5 #include "cc/layers/heads_up_display_layer.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
| 10 #include "cc/layers/heads_up_display_layer_impl.h" | 10 #include "cc/layers/heads_up_display_layer_impl.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 SetBounds(bounds); | 49 SetBounds(bounds); |
| 50 SetTransform(matrix); | 50 SetTransform(matrix); |
| 51 } | 51 } |
| 52 | 52 |
| 53 bool HeadsUpDisplayLayer::HasDrawableContent() const { | 53 bool HeadsUpDisplayLayer::HasDrawableContent() const { |
| 54 return true; | 54 return true; |
| 55 } | 55 } |
| 56 | 56 |
| 57 scoped_ptr<LayerImpl> HeadsUpDisplayLayer::CreateLayerImpl( | 57 scoped_ptr<LayerImpl> HeadsUpDisplayLayer::CreateLayerImpl( |
| 58 LayerTreeImpl* tree_impl) { | 58 LayerTreeImpl* tree_impl) { |
| 59 return HeadsUpDisplayLayerImpl::Create(tree_impl, layer_id_). | 59 return HeadsUpDisplayLayerImpl::Create(tree_impl, layer_id_); |
| 60 PassAs<LayerImpl>(); | |
| 61 } | 60 } |
| 62 | 61 |
| 63 } // namespace cc | 62 } // namespace cc |
| OLD | NEW |