| 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 #include "cc/texture_layer_impl.h" | 5 #include "cc/texture_layer_impl.h" |
| 6 | 6 |
| 7 #include "base/stringprintf.h" | 7 #include "base/stringprintf.h" |
| 8 #include "cc/quad_sink.h" | 8 #include "cc/quad_sink.h" |
| 9 #include "cc/renderer.h" | 9 #include "cc/renderer.h" |
| 10 #include "cc/texture_draw_quad.h" | 10 #include "cc/texture_draw_quad.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 m_externalTextureResource = 0; | 60 m_externalTextureResource = 0; |
| 61 } | 61 } |
| 62 | 62 |
| 63 void TextureLayerImpl::dumpLayerProperties(std::string* str, int indent) const | 63 void TextureLayerImpl::dumpLayerProperties(std::string* str, int indent) const |
| 64 { | 64 { |
| 65 str->append(indentString(indent)); | 65 str->append(indentString(indent)); |
| 66 base::StringAppendF(str, "texture layer texture id: %u premultiplied: %d\n",
m_textureId, m_premultipliedAlpha); | 66 base::StringAppendF(str, "texture layer texture id: %u premultiplied: %d\n",
m_textureId, m_premultipliedAlpha); |
| 67 LayerImpl::dumpLayerProperties(str, indent); | 67 LayerImpl::dumpLayerProperties(str, indent); |
| 68 } | 68 } |
| 69 | 69 |
| 70 void TextureLayerImpl::didLoseContext() | 70 void TextureLayerImpl::didLoseOutputSurface() |
| 71 { | 71 { |
| 72 m_textureId = 0; | 72 m_textureId = 0; |
| 73 m_externalTextureResource = 0; | 73 m_externalTextureResource = 0; |
| 74 } | 74 } |
| 75 | 75 |
| 76 const char* TextureLayerImpl::layerTypeAsString() const | 76 const char* TextureLayerImpl::layerTypeAsString() const |
| 77 { | 77 { |
| 78 return "TextureLayer"; | 78 return "TextureLayer"; |
| 79 } | 79 } |
| 80 | 80 |
| 81 } // namespace cc | 81 } // namespace cc |
| OLD | NEW |