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_blink_platform_impl.h" | 5 #include "content/renderer/renderer_blink_platform_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1017 blink::Platform::GraphicsInfo* gl_info) { | 1017 blink::Platform::GraphicsInfo* gl_info) { |
1018 DCHECK(gl_info); | 1018 DCHECK(gl_info); |
1019 if (!RenderThreadImpl::current()) { | 1019 if (!RenderThreadImpl::current()) { |
1020 std::string error_message("Failed to run in Current RenderThreadImpl"); | 1020 std::string error_message("Failed to run in Current RenderThreadImpl"); |
1021 gl_info->errorMessage = WebString::fromUTF8(error_message); | 1021 gl_info->errorMessage = WebString::fromUTF8(error_message); |
1022 return nullptr; | 1022 return nullptr; |
1023 } | 1023 } |
1024 | 1024 |
1025 scoped_refptr<gpu::GpuChannelHost> gpu_channel_host( | 1025 scoped_refptr<gpu::GpuChannelHost> gpu_channel_host( |
1026 RenderThreadImpl::current()->EstablishGpuChannelSync( | 1026 RenderThreadImpl::current()->EstablishGpuChannelSync( |
1027 CAUSE_FOR_GPU_LAUNCH_WEBGRAPHICSCONTEXT3DCOMMANDBUFFERIMPL_INITIALIZE)
); | 1027 CAUSE_FOR_GPU_LAUNCH_WEBGL_CONTEXT)); |
1028 if (!gpu_channel_host) { | 1028 if (!gpu_channel_host) { |
1029 std::string error_message( | 1029 std::string error_message( |
1030 "OffscreenContext Creation failed, GpuChannelHost creation failed"); | 1030 "OffscreenContext Creation failed, GpuChannelHost creation failed"); |
1031 gl_info->errorMessage = WebString::fromUTF8(error_message); | 1031 gl_info->errorMessage = WebString::fromUTF8(error_message); |
1032 return nullptr; | 1032 return nullptr; |
1033 } | 1033 } |
1034 | 1034 |
1035 content::WebGraphicsContext3DProviderImpl* share_provider_impl = | 1035 content::WebGraphicsContext3DProviderImpl* share_provider_impl = |
1036 static_cast<content::WebGraphicsContext3DProviderImpl*>(share_provider); | 1036 static_cast<content::WebGraphicsContext3DProviderImpl*>(share_provider); |
1037 ContextProviderCommandBuffer* share_context = nullptr; | 1037 ContextProviderCommandBuffer* share_context = nullptr; |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1302 } | 1302 } |
1303 | 1303 |
1304 //------------------------------------------------------------------------------ | 1304 //------------------------------------------------------------------------------ |
1305 | 1305 |
1306 blink::WebTrialTokenValidator* | 1306 blink::WebTrialTokenValidator* |
1307 RendererBlinkPlatformImpl::trialTokenValidator() { | 1307 RendererBlinkPlatformImpl::trialTokenValidator() { |
1308 return &trial_token_validator_; | 1308 return &trial_token_validator_; |
1309 } | 1309 } |
1310 | 1310 |
1311 } // namespace content | 1311 } // namespace content |
OLD | NEW |