| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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 "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "cc/texture_layer.h" | 7 #include "cc/texture_layer.h" |
| 8 | 8 |
| 9 #include "third_party/khronos/GLES2/gl2.h" | 9 #include "third_party/khronos/GLES2/gl2.h" |
| 10 #include "CCLayerTreeHost.h" | 10 #include "CCLayerTreeHost.h" |
| 11 #include "CCTextureLayerImpl.h" | |
| 12 #include "cc/texture_layer_client.h" | 11 #include "cc/texture_layer_client.h" |
| 12 #include "cc/texture_layer_impl.h" |
| 13 | 13 |
| 14 namespace cc { | 14 namespace cc { |
| 15 | 15 |
| 16 scoped_refptr<TextureLayerChromium> TextureLayerChromium::create(TextureLayerChr
omiumClient* client) | 16 scoped_refptr<TextureLayerChromium> TextureLayerChromium::create(TextureLayerChr
omiumClient* client) |
| 17 { | 17 { |
| 18 return scoped_refptr<TextureLayerChromium>(new TextureLayerChromium(client))
; | 18 return scoped_refptr<TextureLayerChromium>(new TextureLayerChromium(client))
; |
| 19 } | 19 } |
| 20 | 20 |
| 21 TextureLayerChromium::TextureLayerChromium(TextureLayerChromiumClient* client) | 21 TextureLayerChromium::TextureLayerChromium(TextureLayerChromiumClient* client) |
| 22 : LayerChromium() | 22 : LayerChromium() |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 LayerChromium::pushPropertiesTo(layer); | 122 LayerChromium::pushPropertiesTo(layer); |
| 123 | 123 |
| 124 CCTextureLayerImpl* textureLayer = static_cast<CCTextureLayerImpl*>(layer); | 124 CCTextureLayerImpl* textureLayer = static_cast<CCTextureLayerImpl*>(layer); |
| 125 textureLayer->setFlipped(m_flipped); | 125 textureLayer->setFlipped(m_flipped); |
| 126 textureLayer->setUVRect(m_uvRect); | 126 textureLayer->setUVRect(m_uvRect); |
| 127 textureLayer->setPremultipliedAlpha(m_premultipliedAlpha); | 127 textureLayer->setPremultipliedAlpha(m_premultipliedAlpha); |
| 128 textureLayer->setTextureId(m_textureId); | 128 textureLayer->setTextureId(m_textureId); |
| 129 } | 129 } |
| 130 | 130 |
| 131 } | 131 } |
| OLD | NEW |