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> |
| 8 |
7 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
8 #include "cc/layers/heads_up_display_layer_impl.h" | 10 #include "cc/layers/heads_up_display_layer_impl.h" |
9 #include "cc/trees/layer_tree_host.h" | 11 #include "cc/trees/layer_tree_host.h" |
10 | 12 |
11 namespace cc { | 13 namespace cc { |
12 | 14 |
13 scoped_refptr<HeadsUpDisplayLayer> HeadsUpDisplayLayer::Create() { | 15 scoped_refptr<HeadsUpDisplayLayer> HeadsUpDisplayLayer::Create() { |
14 return make_scoped_refptr(new HeadsUpDisplayLayer()); | 16 return make_scoped_refptr(new HeadsUpDisplayLayer()); |
15 } | 17 } |
16 | 18 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 57 |
56 bool HeadsUpDisplayLayer::DrawsContent() const { return true; } | 58 bool HeadsUpDisplayLayer::DrawsContent() const { return true; } |
57 | 59 |
58 scoped_ptr<LayerImpl> HeadsUpDisplayLayer::CreateLayerImpl( | 60 scoped_ptr<LayerImpl> HeadsUpDisplayLayer::CreateLayerImpl( |
59 LayerTreeImpl* tree_impl) { | 61 LayerTreeImpl* tree_impl) { |
60 return HeadsUpDisplayLayerImpl::Create(tree_impl, layer_id_). | 62 return HeadsUpDisplayLayerImpl::Create(tree_impl, layer_id_). |
61 PassAs<LayerImpl>(); | 63 PassAs<LayerImpl>(); |
62 } | 64 } |
63 | 65 |
64 } // namespace cc | 66 } // namespace cc |
OLD | NEW |