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/layers/io_surface_layer_impl.h" | 5 #include "cc/layers/io_surface_layer_impl.h" |
6 | 6 |
7 #include "base/stringprintf.h" | 7 #include "base/stringprintf.h" |
8 #include "cc/layers/quad_sink.h" | 8 #include "cc/layers/quad_sink.h" |
9 #include "cc/output/gl_renderer.h" // For the GLC() macro. | 9 #include "cc/output/gl_renderer.h" // For the GLC() macro. |
10 #include "cc/output/output_surface.h" | 10 #include "cc/output/output_surface.h" |
11 #include "cc/quads/io_surface_draw_quad.h" | 11 #include "cc/quads/io_surface_draw_quad.h" |
12 #include "cc/trees/layer_tree_impl.h" | 12 #include "cc/trees/layer_tree_impl.h" |
13 #include "gpu/GLES2/gl2extchromium.h" | 13 #include "gpu/GLES2/gl2extchromium.h" |
14 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" | 14 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" |
15 #include "third_party/khronos/GLES2/gl2.h" | 15 #include "third_party/khronos/GLES2/gl2.h" |
16 #include "third_party/khronos/GLES2/gl2ext.h" | 16 #include "third_party/khronos/GLES2/gl2ext.h" |
17 | 17 |
18 namespace cc { | 18 namespace cc { |
19 | 19 |
20 IOSurfaceLayerImpl::IOSurfaceLayerImpl(LayerTreeImpl* tree_impl, int id) | 20 IOSurfaceLayerImpl::IOSurfaceLayerImpl(LayerTreeImpl* tree_impl, int id) |
21 : LayerImpl(tree_impl, id), | 21 : LayerImpl(tree_impl, id), |
22 io_surface_id_(0), | 22 io_surface_id_(0), |
23 io_surface_changed_(false), | 23 io_surface_changed_(false), |
24 io_surface_texture_id_(0) {} | 24 io_surface_texture_id_(0) {} |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 142 |
143 io_surface_id_ = io_surface_id; | 143 io_surface_id_ = io_surface_id; |
144 io_surface_size_ = size; | 144 io_surface_size_ = size; |
145 } | 145 } |
146 | 146 |
147 const char* IOSurfaceLayerImpl::LayerTypeAsString() const { | 147 const char* IOSurfaceLayerImpl::LayerTypeAsString() const { |
148 return "cc::IOSurfaceLayerImpl"; | 148 return "cc::IOSurfaceLayerImpl"; |
149 } | 149 } |
150 | 150 |
151 } // namespace cc | 151 } // namespace cc |
OLD | NEW |