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