| 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/gpu/webgraphicscontext3d_in_process_impl.h" | 5 #include "webkit/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 1770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1799 if (length > 1) { | 1799 if (length > 1) { |
| 1800 entry->translated_source.reset(new char[length]); | 1800 entry->translated_source.reset(new char[length]); |
| 1801 ShGetObjectCode(compiler, entry->translated_source.get()); | 1801 ShGetObjectCode(compiler, entry->translated_source.get()); |
| 1802 } | 1802 } |
| 1803 entry->is_valid = true; | 1803 entry->is_valid = true; |
| 1804 return true; | 1804 return true; |
| 1805 } | 1805 } |
| 1806 | 1806 |
| 1807 } // namespace gpu | 1807 } // namespace gpu |
| 1808 } // namespace webkit | 1808 } // namespace webkit |
| OLD | NEW |