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 "cc/gl_renderer.h" | 5 #include "cc/output/gl_renderer.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/debug/trace_event.h" | 11 #include "base/debug/trace_event.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
14 #include "base/strings/string_split.h" | 14 #include "base/strings/string_split.h" |
15 #include "build/build_config.h" | 15 #include "build/build_config.h" |
16 #include "cc/base/math_util.h" | 16 #include "cc/base/math_util.h" |
17 #include "cc/compositor_frame.h" | |
18 #include "cc/compositor_frame_metadata.h" | |
19 #include "cc/context_provider.h" | |
20 #include "cc/damage_tracker.h" | 17 #include "cc/damage_tracker.h" |
21 #include "cc/geometry_binding.h" | |
22 #include "cc/gl_frame_data.h" | |
23 #include "cc/layer_quad.h" | 18 #include "cc/layer_quad.h" |
24 #include "cc/output_surface.h" | 19 #include "cc/output/compositor_frame.h" |
| 20 #include "cc/output/compositor_frame_metadata.h" |
| 21 #include "cc/output/context_provider.h" |
| 22 #include "cc/output/geometry_binding.h" |
| 23 #include "cc/output/gl_frame_data.h" |
| 24 #include "cc/output/output_surface.h" |
| 25 #include "cc/output/render_surface_filters.h" |
25 #include "cc/priority_calculator.h" | 26 #include "cc/priority_calculator.h" |
26 #include "cc/proxy.h" | 27 #include "cc/proxy.h" |
27 #include "cc/render_pass.h" | 28 #include "cc/render_pass.h" |
28 #include "cc/render_surface_filters.h" | |
29 #include "cc/scoped_resource.h" | 29 #include "cc/scoped_resource.h" |
30 #include "cc/single_thread_proxy.h" | 30 #include "cc/single_thread_proxy.h" |
31 #include "cc/stream_video_draw_quad.h" | 31 #include "cc/stream_video_draw_quad.h" |
32 #include "cc/texture_draw_quad.h" | 32 #include "cc/texture_draw_quad.h" |
33 #include "cc/video_layer_impl.h" | 33 #include "cc/video_layer_impl.h" |
34 #include "gpu/GLES2/gl2extchromium.h" | 34 #include "gpu/GLES2/gl2extchromium.h" |
35 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" | 35 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" |
36 #include "third_party/khronos/GLES2/gl2.h" | 36 #include "third_party/khronos/GLES2/gl2.h" |
37 #include "third_party/khronos/GLES2/gl2ext.h" | 37 #include "third_party/khronos/GLES2/gl2ext.h" |
38 #include "third_party/skia/include/core/SkBitmap.h" | 38 #include "third_party/skia/include/core/SkBitmap.h" |
(...skipping 2184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2223 GLC(context_, context_->deleteFramebuffer(offscreen_framebuffer_id_)); | 2223 GLC(context_, context_->deleteFramebuffer(offscreen_framebuffer_id_)); |
2224 | 2224 |
2225 ReleaseRenderPassTextures(); | 2225 ReleaseRenderPassTextures(); |
2226 } | 2226 } |
2227 | 2227 |
2228 bool GLRenderer::IsContextLost() { | 2228 bool GLRenderer::IsContextLost() { |
2229 return (context_->getGraphicsResetStatusARB() != GL_NO_ERROR); | 2229 return (context_->getGraphicsResetStatusARB() != GL_NO_ERROR); |
2230 } | 2230 } |
2231 | 2231 |
2232 } // namespace cc | 2232 } // namespace cc |
OLD | NEW |