| 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" |
| 11 | 11 |
| 12 namespace cc { | 12 namespace cc { |
| 13 | 13 |
| 14 TextureLayerImpl::TextureLayerImpl(int id) | 14 TextureLayerImpl::TextureLayerImpl(LayerTreeHostImpl* hostImpl, int id) |
| 15 : LayerImpl(id) | 15 : LayerImpl(hostImpl, id) |
| 16 , m_textureId(0) | 16 , m_textureId(0) |
| 17 , m_externalTextureResource(0) | 17 , m_externalTextureResource(0) |
| 18 , m_premultipliedAlpha(true) | 18 , m_premultipliedAlpha(true) |
| 19 , m_flipped(true) | 19 , m_flipped(true) |
| 20 , m_uvRect(0, 0, 1, 1) | 20 , m_uvRect(0, 0, 1, 1) |
| 21 { | 21 { |
| 22 } | 22 } |
| 23 | 23 |
| 24 TextureLayerImpl::~TextureLayerImpl() | 24 TextureLayerImpl::~TextureLayerImpl() |
| 25 { | 25 { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |