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 "content/renderer/renderer_webkitplatformsupport_impl.h" | 5 #include "content/renderer/renderer_webkitplatformsupport_impl.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/file_util.h" | |
9 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
10 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
11 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
12 #include "base/platform_file.h" | 11 #include "base/platform_file.h" |
13 #include "base/shared_memory.h" | 12 #include "base/shared_memory.h" |
14 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
15 #include "content/common/database_util.h" | 14 #include "content/common/database_util.h" |
16 #include "content/common/file_utilities_messages.h" | 15 #include "content/common/file_utilities_messages.h" |
17 #include "content/common/fileapi/webblobregistry_impl.h" | 16 #include "content/common/fileapi/webblobregistry_impl.h" |
18 #include "content/common/fileapi/webfilesystem_impl.h" | 17 #include "content/common/fileapi/webfilesystem_impl.h" |
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
916 if (!shared_offscreen_context_ || | 915 if (!shared_offscreen_context_ || |
917 shared_offscreen_context_->DestroyedOnMainThread()) { | 916 shared_offscreen_context_->DestroyedOnMainThread()) { |
918 shared_offscreen_context_ = | 917 shared_offscreen_context_ = |
919 RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); | 918 RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); |
920 } | 919 } |
921 return new webkit::gpu::WebGraphicsContext3DProviderImpl( | 920 return new webkit::gpu::WebGraphicsContext3DProviderImpl( |
922 shared_offscreen_context_); | 921 shared_offscreen_context_); |
923 } | 922 } |
924 | 923 |
925 } // namespace content | 924 } // namespace content |
OLD | NEW |