| 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 "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
| 8 #include "cc/layers/heads_up_display_layer_impl.h" | 8 #include "cc/layers/heads_up_display_layer_impl.h" |
| 9 #include "cc/trees/layer_tree_host.h" | 9 #include "cc/trees/layer_tree_host.h" |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 matrix.Translate(device_viewport_in_layout_pixels_width - 256.0, 0.0); | 49 matrix.Translate(device_viewport_in_layout_pixels_width - 256.0, 0.0); |
| 50 } | 50 } |
| 51 | 51 |
| 52 SetBounds(bounds); | 52 SetBounds(bounds); |
| 53 SetTransform(matrix); | 53 SetTransform(matrix); |
| 54 } | 54 } |
| 55 | 55 |
| 56 bool HeadsUpDisplayLayer::DrawsContent() const { return true; } | 56 bool HeadsUpDisplayLayer::DrawsContent() const { return true; } |
| 57 | 57 |
| 58 scoped_ptr<LayerImpl> HeadsUpDisplayLayer::CreateLayerImpl( | 58 scoped_ptr<LayerImpl> HeadsUpDisplayLayer::CreateLayerImpl( |
| 59 LayerTreeImpl* treeImpl) { | 59 LayerTreeImpl* tree_impl) { |
| 60 return HeadsUpDisplayLayerImpl::Create(treeImpl, layer_id_). | 60 return HeadsUpDisplayLayerImpl::Create(tree_impl, layer_id_). |
| 61 PassAs<LayerImpl>(); | 61 PassAs<LayerImpl>(); |
| 62 } | 62 } |
| 63 | 63 |
| 64 } // namespace cc | 64 } // namespace cc |
| OLD | NEW |