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 18 matching lines...) Expand all Loading... |
29 #include "cc/quads/stream_video_draw_quad.h" | 29 #include "cc/quads/stream_video_draw_quad.h" |
30 #include "cc/quads/texture_draw_quad.h" | 30 #include "cc/quads/texture_draw_quad.h" |
31 #include "cc/resources/layer_quad.h" | 31 #include "cc/resources/layer_quad.h" |
32 #include "cc/resources/priority_calculator.h" | 32 #include "cc/resources/priority_calculator.h" |
33 #include "cc/resources/scoped_resource.h" | 33 #include "cc/resources/scoped_resource.h" |
34 #include "cc/resources/sync_point_helper.h" | 34 #include "cc/resources/sync_point_helper.h" |
35 #include "cc/trees/damage_tracker.h" | 35 #include "cc/trees/damage_tracker.h" |
36 #include "cc/trees/proxy.h" | 36 #include "cc/trees/proxy.h" |
37 #include "cc/trees/single_thread_proxy.h" | 37 #include "cc/trees/single_thread_proxy.h" |
38 #include "gpu/GLES2/gl2extchromium.h" | 38 #include "gpu/GLES2/gl2extchromium.h" |
39 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" | 39 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" |
40 #include "third_party/khronos/GLES2/gl2.h" | 40 #include "third_party/khronos/GLES2/gl2.h" |
41 #include "third_party/khronos/GLES2/gl2ext.h" | 41 #include "third_party/khronos/GLES2/gl2ext.h" |
42 #include "third_party/skia/include/core/SkBitmap.h" | 42 #include "third_party/skia/include/core/SkBitmap.h" |
43 #include "third_party/skia/include/core/SkColor.h" | 43 #include "third_party/skia/include/core/SkColor.h" |
44 #include "third_party/skia/include/core/SkColorFilter.h" | 44 #include "third_party/skia/include/core/SkColorFilter.h" |
45 #include "third_party/skia/include/gpu/GrContext.h" | 45 #include "third_party/skia/include/gpu/GrContext.h" |
46 #include "third_party/skia/include/gpu/GrTexture.h" | 46 #include "third_party/skia/include/gpu/GrTexture.h" |
47 #include "third_party/skia/include/gpu/SkGpuDevice.h" | 47 #include "third_party/skia/include/gpu/SkGpuDevice.h" |
48 #include "third_party/skia/include/gpu/SkGrTexturePixelRef.h" | 48 #include "third_party/skia/include/gpu/SkGrTexturePixelRef.h" |
49 #include "ui/gfx/quad_f.h" | 49 #include "ui/gfx/quad_f.h" |
(...skipping 2746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2796 resource_provider_->DeleteResource(on_demand_tile_raster_resource_id_); | 2796 resource_provider_->DeleteResource(on_demand_tile_raster_resource_id_); |
2797 | 2797 |
2798 ReleaseRenderPassTextures(); | 2798 ReleaseRenderPassTextures(); |
2799 } | 2799 } |
2800 | 2800 |
2801 bool GLRenderer::IsContextLost() { | 2801 bool GLRenderer::IsContextLost() { |
2802 return (context_->getGraphicsResetStatusARB() != GL_NO_ERROR); | 2802 return (context_->getGraphicsResetStatusARB() != GL_NO_ERROR); |
2803 } | 2803 } |
2804 | 2804 |
2805 } // namespace cc | 2805 } // namespace cc |
OLD | NEW |