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 "cc/io_surface_layer_impl.h" | 5 #include "cc/io_surface_layer_impl.h" |
6 | 6 |
7 #include "base/stringprintf.h" | 7 #include "base/stringprintf.h" |
8 #include "cc/gl_renderer.h" // For the GLC() macro. | 8 #include "cc/gl_renderer.h" // For the GLC() macro. |
9 #include "cc/io_surface_draw_quad.h" | 9 #include "cc/io_surface_draw_quad.h" |
10 #include "cc/layer_tree_impl.h" | 10 #include "cc/layer_tree_impl.h" |
11 #include "cc/output_surface.h" | 11 #include "cc/output_surface.h" |
12 #include "cc/quad_sink.h" | 12 #include "cc/quad_sink.h" |
| 13 #include "gpu/GLES2/gl2extchromium.h" |
13 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" | 14 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" |
14 #include "third_party/khronos/GLES2/gl2.h" | 15 #include "third_party/khronos/GLES2/gl2.h" |
15 #include "third_party/khronos/GLES2/gl2ext.h" | 16 #include "third_party/khronos/GLES2/gl2ext.h" |
16 | 17 |
17 namespace cc { | 18 namespace cc { |
18 | 19 |
19 IOSurfaceLayerImpl::IOSurfaceLayerImpl(LayerTreeImpl* treeImpl, int id) | 20 IOSurfaceLayerImpl::IOSurfaceLayerImpl(LayerTreeImpl* treeImpl, int id) |
20 : LayerImpl(treeImpl, id) | 21 : LayerImpl(treeImpl, id) |
21 , m_ioSurfaceId(0) | 22 , m_ioSurfaceId(0) |
22 , m_ioSurfaceChanged(false) | 23 , m_ioSurfaceChanged(false) |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 m_ioSurfaceId = ioSurfaceId; | 108 m_ioSurfaceId = ioSurfaceId; |
108 m_ioSurfaceSize = size; | 109 m_ioSurfaceSize = size; |
109 } | 110 } |
110 | 111 |
111 const char* IOSurfaceLayerImpl::layerTypeAsString() const | 112 const char* IOSurfaceLayerImpl::layerTypeAsString() const |
112 { | 113 { |
113 return "IOSurfaceLayer"; | 114 return "IOSurfaceLayer"; |
114 } | 115 } |
115 | 116 |
116 } // namespace cc | 117 } // namespace cc |
OLD | NEW |