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 <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "cc/quads/stream_video_draw_quad.h" | 30 #include "cc/quads/stream_video_draw_quad.h" |
31 #include "cc/quads/texture_draw_quad.h" | 31 #include "cc/quads/texture_draw_quad.h" |
32 #include "cc/resources/layer_quad.h" | 32 #include "cc/resources/layer_quad.h" |
33 #include "cc/resources/priority_calculator.h" | 33 #include "cc/resources/priority_calculator.h" |
34 #include "cc/resources/scoped_resource.h" | 34 #include "cc/resources/scoped_resource.h" |
35 #include "cc/resources/sync_point_helper.h" | 35 #include "cc/resources/sync_point_helper.h" |
36 #include "cc/trees/damage_tracker.h" | 36 #include "cc/trees/damage_tracker.h" |
37 #include "cc/trees/proxy.h" | 37 #include "cc/trees/proxy.h" |
38 #include "cc/trees/single_thread_proxy.h" | 38 #include "cc/trees/single_thread_proxy.h" |
39 #include "gpu/GLES2/gl2extchromium.h" | 39 #include "gpu/GLES2/gl2extchromium.h" |
40 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" | 40 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" |
41 #include "third_party/khronos/GLES2/gl2.h" | 41 #include "third_party/khronos/GLES2/gl2.h" |
42 #include "third_party/khronos/GLES2/gl2ext.h" | 42 #include "third_party/khronos/GLES2/gl2ext.h" |
43 #include "third_party/skia/include/core/SkBitmap.h" | 43 #include "third_party/skia/include/core/SkBitmap.h" |
44 #include "third_party/skia/include/core/SkColor.h" | 44 #include "third_party/skia/include/core/SkColor.h" |
45 #include "third_party/skia/include/core/SkColorFilter.h" | 45 #include "third_party/skia/include/core/SkColorFilter.h" |
46 #include "third_party/skia/include/core/SkSurface.h" | 46 #include "third_party/skia/include/core/SkSurface.h" |
47 #include "third_party/skia/include/gpu/GrContext.h" | 47 #include "third_party/skia/include/gpu/GrContext.h" |
48 #include "third_party/skia/include/gpu/GrTexture.h" | 48 #include "third_party/skia/include/gpu/GrTexture.h" |
49 #include "third_party/skia/include/gpu/SkGpuDevice.h" | 49 #include "third_party/skia/include/gpu/SkGpuDevice.h" |
50 #include "third_party/skia/include/gpu/SkGrTexturePixelRef.h" | 50 #include "third_party/skia/include/gpu/SkGrTexturePixelRef.h" |
(...skipping 2853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2904 // The Skia GPU backend requires a stencil buffer. See ReinitializeGrCanvas | 2904 // The Skia GPU backend requires a stencil buffer. See ReinitializeGrCanvas |
2905 // implementation. | 2905 // implementation. |
2906 return gr_context_ && context_->getContextAttributes().stencil; | 2906 return gr_context_ && context_->getContextAttributes().stencil; |
2907 } | 2907 } |
2908 | 2908 |
2909 bool GLRenderer::IsContextLost() { | 2909 bool GLRenderer::IsContextLost() { |
2910 return (context_->getGraphicsResetStatusARB() != GL_NO_ERROR); | 2910 return (context_->getGraphicsResetStatusARB() != GL_NO_ERROR); |
2911 } | 2911 } |
2912 | 2912 |
2913 } // namespace cc | 2913 } // namespace cc |
OLD | NEW |