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