OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "webkit/common/gpu/webgraphicscontext3d_in_process_impl.h" | 5 #include "webkit/common/gpu/webgraphicscontext3d_in_process_impl.h" |
6 | 6 |
7 #include <string.h> | 7 #include <string.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/strings/string_split.h" | 16 #include "base/strings/string_split.h" |
17 #include "base/synchronization/lock.h" | 17 #include "base/synchronization/lock.h" |
18 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" | 18 #include "third_party/WebKit/public/platform/WebString.h" |
19 #include "ui/gl/gl_bindings.h" | 19 #include "ui/gl/gl_bindings.h" |
20 #include "ui/gl/gl_bindings_skia_in_process.h" | 20 #include "ui/gl/gl_bindings_skia_in_process.h" |
21 #include "ui/gl/gl_context.h" | 21 #include "ui/gl/gl_context.h" |
22 #include "ui/gl/gl_implementation.h" | 22 #include "ui/gl/gl_implementation.h" |
23 #include "ui/gl/gl_surface.h" | 23 #include "ui/gl/gl_surface.h" |
24 | 24 |
25 namespace webkit { | 25 namespace webkit { |
26 namespace gpu { | 26 namespace gpu { |
27 | 27 |
28 enum { | 28 enum { |
(...skipping 1775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1804 if (length > 1) { | 1804 if (length > 1) { |
1805 entry->translated_source.reset(new char[length]); | 1805 entry->translated_source.reset(new char[length]); |
1806 ShGetObjectCode(compiler, entry->translated_source.get()); | 1806 ShGetObjectCode(compiler, entry->translated_source.get()); |
1807 } | 1807 } |
1808 entry->is_valid = true; | 1808 entry->is_valid = true; |
1809 return true; | 1809 return true; |
1810 } | 1810 } |
1811 | 1811 |
1812 } // namespace gpu | 1812 } // namespace gpu |
1813 } // namespace webkit | 1813 } // namespace webkit |
OLD | NEW |