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/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/compositor_frame.h" | 17 #include "cc/compositor_frame.h" |
17 #include "cc/compositor_frame_metadata.h" | 18 #include "cc/compositor_frame_metadata.h" |
18 #include "cc/context_provider.h" | 19 #include "cc/context_provider.h" |
19 #include "cc/damage_tracker.h" | 20 #include "cc/damage_tracker.h" |
20 #include "cc/geometry_binding.h" | 21 #include "cc/geometry_binding.h" |
21 #include "cc/gl_frame_data.h" | 22 #include "cc/gl_frame_data.h" |
22 #include "cc/layer_quad.h" | 23 #include "cc/layer_quad.h" |
23 #include "cc/math_util.h" | |
24 #include "cc/output_surface.h" | 24 #include "cc/output_surface.h" |
25 #include "cc/priority_calculator.h" | 25 #include "cc/priority_calculator.h" |
26 #include "cc/proxy.h" | 26 #include "cc/proxy.h" |
27 #include "cc/render_pass.h" | 27 #include "cc/render_pass.h" |
28 #include "cc/render_surface_filters.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" |
(...skipping 2095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2129 GLC(context_, context_->deleteFramebuffer(offscreen_framebuffer_id_)); | 2129 GLC(context_, context_->deleteFramebuffer(offscreen_framebuffer_id_)); |
2130 | 2130 |
2131 ReleaseRenderPassTextures(); | 2131 ReleaseRenderPassTextures(); |
2132 } | 2132 } |
2133 | 2133 |
2134 bool GLRenderer::IsContextLost() { | 2134 bool GLRenderer::IsContextLost() { |
2135 return (context_->getGraphicsResetStatusARB() != GL_NO_ERROR); | 2135 return (context_->getGraphicsResetStatusARB() != GL_NO_ERROR); |
2136 } | 2136 } |
2137 | 2137 |
2138 } // namespace cc | 2138 } // namespace cc |
OLD | NEW |