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 "CCIOSurfaceLayerImpl.h" | 7 #include "CCIOSurfaceLayerImpl.h" |
8 | 8 |
9 #include "base/stringprintf.h" | 9 #include "base/stringprintf.h" |
10 #include "CCGraphicsContext.h" | 10 #include "CCGraphicsContext.h" |
11 #include "CCIOSurfaceDrawQuad.h" | 11 #include "CCIOSurfaceDrawQuad.h" |
12 #include "CCLayerTreeHostImpl.h" | 12 #include "CCLayerTreeHostImpl.h" |
13 #include "CCQuadSink.h" | 13 #include "CCQuadSink.h" |
14 #include "CCRendererGL.h" // For the GLC() macro. | 14 #include "cc/gl_renderer.h" // For the GLC() macro. |
15 #include "Extensions3D.h" | 15 #include "Extensions3D.h" |
16 #include <public/WebGraphicsContext3D.h> | 16 #include <public/WebGraphicsContext3D.h> |
17 | 17 |
18 namespace cc { | 18 namespace cc { |
19 | 19 |
20 CCIOSurfaceLayerImpl::CCIOSurfaceLayerImpl(int id) | 20 CCIOSurfaceLayerImpl::CCIOSurfaceLayerImpl(int id) |
21 : CCLayerImpl(id) | 21 : CCLayerImpl(id) |
22 , m_ioSurfaceId(0) | 22 , m_ioSurfaceId(0) |
23 , m_ioSurfaceChanged(false) | 23 , m_ioSurfaceChanged(false) |
24 , m_ioSurfaceTextureId(0) | 24 , m_ioSurfaceTextureId(0) |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 m_ioSurfaceId = ioSurfaceId; | 105 m_ioSurfaceId = ioSurfaceId; |
106 m_ioSurfaceSize = size; | 106 m_ioSurfaceSize = size; |
107 } | 107 } |
108 | 108 |
109 const char* CCIOSurfaceLayerImpl::layerTypeAsString() const | 109 const char* CCIOSurfaceLayerImpl::layerTypeAsString() const |
110 { | 110 { |
111 return "IOSurfaceLayer"; | 111 return "IOSurfaceLayer"; |
112 } | 112 } |
113 | 113 |
114 } | 114 } |
OLD | NEW |