Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1052)

Side by Side Diff: cc/gl_renderer.cc

Issue 11615020: Clean up cc and webkit/compositor_bindings include path shenanigans (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/geometry_binding.cc ('k') | cc/keyframed_animation_curve.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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>
8 #include <string>
9 #include <vector>
10
7 #include "base/debug/trace_event.h" 11 #include "base/debug/trace_event.h"
8 #include "base/logging.h" 12 #include "base/logging.h"
9 #include "base/string_split.h" 13 #include "base/string_split.h"
10 #include "base/string_util.h" 14 #include "base/string_util.h"
11 #include "build/build_config.h" 15 #include "build/build_config.h"
12 #include "cc/compositor_frame.h" 16 #include "cc/compositor_frame.h"
13 #include "cc/compositor_frame_metadata.h" 17 #include "cc/compositor_frame_metadata.h"
14 #include "cc/damage_tracker.h" 18 #include "cc/damage_tracker.h"
15 #include "cc/geometry_binding.h" 19 #include "cc/geometry_binding.h"
16 #include "cc/gl_frame_data.h" 20 #include "cc/gl_frame_data.h"
17 #include "cc/layer_quad.h" 21 #include "cc/layer_quad.h"
18 #include "cc/math_util.h" 22 #include "cc/math_util.h"
19 #include "cc/priority_calculator.h" 23 #include "cc/priority_calculator.h"
20 #include "cc/proxy.h" 24 #include "cc/proxy.h"
21 #include "cc/render_pass.h" 25 #include "cc/render_pass.h"
22 #include "cc/render_surface_filters.h" 26 #include "cc/render_surface_filters.h"
23 #include "cc/scoped_resource.h" 27 #include "cc/scoped_resource.h"
24 #include "cc/single_thread_proxy.h" 28 #include "cc/single_thread_proxy.h"
25 #include "cc/stream_video_draw_quad.h" 29 #include "cc/stream_video_draw_quad.h"
26 #include "cc/texture_draw_quad.h" 30 #include "cc/texture_draw_quad.h"
27 #include "cc/video_layer_impl.h" 31 #include "cc/video_layer_impl.h"
32 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3 D.h"
33 #include "third_party/WebKit/Source/Platform/chromium/public/WebSharedGraphicsCo ntext3D.h"
28 #include "third_party/khronos/GLES2/gl2.h" 34 #include "third_party/khronos/GLES2/gl2.h"
29 #include "third_party/khronos/GLES2/gl2ext.h" 35 #include "third_party/khronos/GLES2/gl2ext.h"
30 #include "third_party/skia/include/core/SkBitmap.h" 36 #include "third_party/skia/include/core/SkBitmap.h"
31 #include "third_party/skia/include/core/SkColor.h" 37 #include "third_party/skia/include/core/SkColor.h"
32 #include "third_party/skia/include/gpu/GrContext.h" 38 #include "third_party/skia/include/gpu/GrContext.h"
33 #include "third_party/skia/include/gpu/GrTexture.h" 39 #include "third_party/skia/include/gpu/GrTexture.h"
34 #include "third_party/skia/include/gpu/SkGpuDevice.h" 40 #include "third_party/skia/include/gpu/SkGpuDevice.h"
35 #include "third_party/skia/include/gpu/SkGrTexturePixelRef.h" 41 #include "third_party/skia/include/gpu/SkGrTexturePixelRef.h"
36 #include "ui/gfx/quad_f.h" 42 #include "ui/gfx/quad_f.h"
37 #include "ui/gfx/rect_conversions.h" 43 #include "ui/gfx/rect_conversions.h"
38 #include <public/WebGraphicsContext3D.h>
39 #include <public/WebSharedGraphicsContext3D.h>
40 #include <set>
41 #include <string>
42 #include <vector>
43 44
44 using namespace std; 45 using namespace std;
45 using WebKit::WebGraphicsContext3D; 46 using WebKit::WebGraphicsContext3D;
46 using WebKit::WebGraphicsMemoryAllocation; 47 using WebKit::WebGraphicsMemoryAllocation;
47 using WebKit::WebSharedGraphicsContext3D; 48 using WebKit::WebSharedGraphicsContext3D;
48 49
49 namespace cc { 50 namespace cc {
50 51
51 namespace { 52 namespace {
52 53
(...skipping 1743 matching lines...) Expand 10 before | Expand all | Expand 10 after
1796 1797
1797 releaseRenderPassTextures(); 1798 releaseRenderPassTextures();
1798 } 1799 }
1799 1800
1800 bool GLRenderer::isContextLost() 1801 bool GLRenderer::isContextLost()
1801 { 1802 {
1802 return (m_context->getGraphicsResetStatusARB() != GL_NO_ERROR); 1803 return (m_context->getGraphicsResetStatusARB() != GL_NO_ERROR);
1803 } 1804 }
1804 1805
1805 } // namespace cc 1806 } // namespace cc
OLDNEW
« no previous file with comments | « cc/geometry_binding.cc ('k') | cc/keyframed_animation_curve.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698