| 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/heads_up_display_layer_impl.h" | 5 #include "cc/heads_up_display_layer_impl.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "base/stringprintf.h" | 9 #include "base/stringprintf.h" |
| 10 #include "cc/debug_colors.h" | 10 #include "cc/debug_colors.h" |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 | 127 |
| 128 if (!m_hudTexture->id()) | 128 if (!m_hudTexture->id()) |
| 129 return; | 129 return; |
| 130 | 130 |
| 131 // FIXME: the following assert will not be true when sending resources to a | 131 // FIXME: the following assert will not be true when sending resources to a |
| 132 // parent compositor. We will probably need to hold on to m_hudTexture for | 132 // parent compositor. We will probably need to hold on to m_hudTexture for |
| 133 // longer, and have several HUD textures in the pipeline. | 133 // longer, and have several HUD textures in the pipeline. |
| 134 DCHECK(!resourceProvider->inUseByConsumer(m_hudTexture->id())); | 134 DCHECK(!resourceProvider->inUseByConsumer(m_hudTexture->id())); |
| 135 } | 135 } |
| 136 | 136 |
| 137 void HeadsUpDisplayLayerImpl::didLoseContext() | 137 void HeadsUpDisplayLayerImpl::didLoseOutputSurface() |
| 138 { | 138 { |
| 139 m_hudTexture.reset(); | 139 m_hudTexture.reset(); |
| 140 } | 140 } |
| 141 | 141 |
| 142 bool HeadsUpDisplayLayerImpl::layerIsAlwaysDamaged() const | 142 bool HeadsUpDisplayLayerImpl::layerIsAlwaysDamaged() const |
| 143 { | 143 { |
| 144 return true; | 144 return true; |
| 145 } | 145 } |
| 146 | 146 |
| 147 void HeadsUpDisplayLayerImpl::drawHudContents(SkCanvas* canvas) | 147 void HeadsUpDisplayLayerImpl::drawHudContents(SkCanvas* canvas) |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 | 375 |
| 376 canvas->restore(); | 376 canvas->restore(); |
| 377 } | 377 } |
| 378 | 378 |
| 379 const char* HeadsUpDisplayLayerImpl::layerTypeAsString() const | 379 const char* HeadsUpDisplayLayerImpl::layerTypeAsString() const |
| 380 { | 380 { |
| 381 return "HeadsUpDisplayLayer"; | 381 return "HeadsUpDisplayLayer"; |
| 382 } | 382 } |
| 383 | 383 |
| 384 } // namespace cc | 384 } // namespace cc |
| OLD | NEW |