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

Side by Side Diff: cc/gl_renderer.cc

Issue 11410021: Remove WTF and WebCore from cc/ and webkit/compositor_bindings/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix content_browsertests Created 8 years, 1 month 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/gl_renderer_unittest.cc » ('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 "config.h"
6
7 #include "cc/gl_renderer.h" 5 #include "cc/gl_renderer.h"
8 6
9 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
10 #include "base/logging.h" 8 #include "base/logging.h"
11 #include "base/string_split.h" 9 #include "base/string_split.h"
12 #include "base/string_util.h" 10 #include "base/string_util.h"
11 #include "build/build_config.h"
13 #include "cc/damage_tracker.h" 12 #include "cc/damage_tracker.h"
14 #include "cc/geometry_binding.h" 13 #include "cc/geometry_binding.h"
15 #include "cc/layer_quad.h" 14 #include "cc/layer_quad.h"
16 #include "cc/math_util.h" 15 #include "cc/math_util.h"
17 #include "cc/platform_color.h" 16 #include "cc/platform_color.h"
18 #include "cc/priority_calculator.h" 17 #include "cc/priority_calculator.h"
19 #include "cc/proxy.h" 18 #include "cc/proxy.h"
20 #include "cc/render_pass.h" 19 #include "cc/render_pass.h"
21 #include "cc/render_surface_filters.h" 20 #include "cc/render_surface_filters.h"
22 #include "cc/scoped_resource.h" 21 #include "cc/scoped_resource.h"
(...skipping 23 matching lines...) Expand all
46 using WebKit::WebGraphicsMemoryAllocation; 45 using WebKit::WebGraphicsMemoryAllocation;
47 using WebKit::WebSharedGraphicsContext3D; 46 using WebKit::WebSharedGraphicsContext3D;
48 using WebKit::WebTransformationMatrix; 47 using WebKit::WebTransformationMatrix;
49 48
50 namespace cc { 49 namespace cc {
51 50
52 namespace { 51 namespace {
53 52
54 bool needsIOSurfaceReadbackWorkaround() 53 bool needsIOSurfaceReadbackWorkaround()
55 { 54 {
56 #if OS(DARWIN) 55 #if defined(OS_MACOSX)
57 return true; 56 return true;
58 #else 57 #else
59 return false; 58 return false;
60 #endif 59 #endif
61 } 60 }
62 61
63 } // anonymous namespace 62 } // anonymous namespace
64 63
65 scoped_ptr<GLRenderer> GLRenderer::create(RendererClient* client, ResourceProvid er* resourceProvider) 64 scoped_ptr<GLRenderer> GLRenderer::create(RendererClient* client, ResourceProvid er* resourceProvider)
66 { 65 {
(...skipping 1537 matching lines...) Expand 10 before | Expand all | Expand 10 after
1604 1603
1605 releaseRenderPassTextures(); 1604 releaseRenderPassTextures();
1606 } 1605 }
1607 1606
1608 bool GLRenderer::isContextLost() 1607 bool GLRenderer::isContextLost()
1609 { 1608 {
1610 return (m_context->getGraphicsResetStatusARB() != GL_NO_ERROR); 1609 return (m_context->getGraphicsResetStatusARB() != GL_NO_ERROR);
1611 } 1610 }
1612 1611
1613 } // namespace cc 1612 } // namespace cc
OLDNEW
« no previous file with comments | « cc/geometry_binding.cc ('k') | cc/gl_renderer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698