OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 "IOSurfaceLayerChromium.h" | 7 #include "cc/io_surface_layer.h" |
8 | 8 |
9 #include "CCIOSurfaceLayerImpl.h" | 9 #include "CCIOSurfaceLayerImpl.h" |
10 | 10 |
11 namespace cc { | 11 namespace cc { |
12 | 12 |
13 scoped_refptr<IOSurfaceLayerChromium> IOSurfaceLayerChromium::create() | 13 scoped_refptr<IOSurfaceLayerChromium> IOSurfaceLayerChromium::create() |
14 { | 14 { |
15 return make_scoped_refptr(new IOSurfaceLayerChromium()); | 15 return make_scoped_refptr(new IOSurfaceLayerChromium()); |
16 } | 16 } |
17 | 17 |
(...skipping 26 matching lines...) Expand all Loading... |
44 | 44 |
45 void IOSurfaceLayerChromium::pushPropertiesTo(CCLayerImpl* layer) | 45 void IOSurfaceLayerChromium::pushPropertiesTo(CCLayerImpl* layer) |
46 { | 46 { |
47 LayerChromium::pushPropertiesTo(layer); | 47 LayerChromium::pushPropertiesTo(layer); |
48 | 48 |
49 CCIOSurfaceLayerImpl* textureLayer = static_cast<CCIOSurfaceLayerImpl*>(laye
r); | 49 CCIOSurfaceLayerImpl* textureLayer = static_cast<CCIOSurfaceLayerImpl*>(laye
r); |
50 textureLayer->setIOSurfaceProperties(m_ioSurfaceId, m_ioSurfaceSize); | 50 textureLayer->setIOSurfaceProperties(m_ioSurfaceId, m_ioSurfaceSize); |
51 } | 51 } |
52 | 52 |
53 } | 53 } |
OLD | NEW |