| 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/output/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/layer_quad.h" | |
| 18 #include "cc/output/compositor_frame.h" | 17 #include "cc/output/compositor_frame.h" |
| 19 #include "cc/output/compositor_frame_metadata.h" | 18 #include "cc/output/compositor_frame_metadata.h" |
| 20 #include "cc/output/context_provider.h" | 19 #include "cc/output/context_provider.h" |
| 21 #include "cc/output/geometry_binding.h" | 20 #include "cc/output/geometry_binding.h" |
| 22 #include "cc/output/gl_frame_data.h" | 21 #include "cc/output/gl_frame_data.h" |
| 23 #include "cc/output/output_surface.h" | 22 #include "cc/output/output_surface.h" |
| 24 #include "cc/output/render_surface_filters.h" | 23 #include "cc/output/render_surface_filters.h" |
| 25 #include "cc/priority_calculator.h" | |
| 26 #include "cc/quads/render_pass.h" | 24 #include "cc/quads/render_pass.h" |
| 27 #include "cc/quads/stream_video_draw_quad.h" | 25 #include "cc/quads/stream_video_draw_quad.h" |
| 28 #include "cc/quads/texture_draw_quad.h" | 26 #include "cc/quads/texture_draw_quad.h" |
| 29 #include "cc/scoped_resource.h" | 27 #include "cc/resources/layer_quad.h" |
| 28 #include "cc/resources/priority_calculator.h" |
| 29 #include "cc/resources/scoped_resource.h" |
| 30 #include "cc/trees/damage_tracker.h" | 30 #include "cc/trees/damage_tracker.h" |
| 31 #include "cc/trees/proxy.h" | 31 #include "cc/trees/proxy.h" |
| 32 #include "cc/trees/single_thread_proxy.h" | 32 #include "cc/trees/single_thread_proxy.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" |
| 39 #include "third_party/skia/include/core/SkColor.h" | 39 #include "third_party/skia/include/core/SkColor.h" |
| (...skipping 2183 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 |