| 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 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1137 bool is_software_rendering = host->gpu_info().software_rendering; | 1137 bool is_software_rendering = host->gpu_info().software_rendering; |
| 1138 | 1138 |
| 1139 return new WebGraphicsContext3DProviderImpl(std::move(provider), | 1139 return new WebGraphicsContext3DProviderImpl(std::move(provider), |
| 1140 is_software_rendering); | 1140 is_software_rendering); |
| 1141 } | 1141 } |
| 1142 | 1142 |
| 1143 //------------------------------------------------------------------------------ | 1143 //------------------------------------------------------------------------------ |
| 1144 | 1144 |
| 1145 gpu::GpuMemoryBufferManager* | 1145 gpu::GpuMemoryBufferManager* |
| 1146 RendererBlinkPlatformImpl::getGpuMemoryBufferManager() { | 1146 RendererBlinkPlatformImpl::getGpuMemoryBufferManager() { |
| 1147 return ChildThreadImpl::current()->gpu_memory_buffer_manager(); | 1147 return RenderThreadImpl::current()->GetGpuMemoryBufferManager(); |
| 1148 } | 1148 } |
| 1149 | 1149 |
| 1150 //------------------------------------------------------------------------------ | 1150 //------------------------------------------------------------------------------ |
| 1151 | 1151 |
| 1152 std::unique_ptr<cc::SharedBitmap> | 1152 std::unique_ptr<cc::SharedBitmap> |
| 1153 RendererBlinkPlatformImpl::allocateSharedBitmap(const blink::WebSize& size) { | 1153 RendererBlinkPlatformImpl::allocateSharedBitmap(const blink::WebSize& size) { |
| 1154 return ChildThreadImpl::current() | 1154 return ChildThreadImpl::current() |
| 1155 ->shared_bitmap_manager() | 1155 ->shared_bitmap_manager() |
| 1156 ->AllocateSharedBitmap(gfx::Size(size.width, size.height)); | 1156 ->AllocateSharedBitmap(gfx::Size(size.width, size.height)); |
| 1157 } | 1157 } |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1344 return &trial_token_validator_; | 1344 return &trial_token_validator_; |
| 1345 } | 1345 } |
| 1346 | 1346 |
| 1347 void RendererBlinkPlatformImpl::workerContextCreated( | 1347 void RendererBlinkPlatformImpl::workerContextCreated( |
| 1348 const v8::Local<v8::Context>& worker) { | 1348 const v8::Local<v8::Context>& worker) { |
| 1349 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread( | 1349 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread( |
| 1350 worker); | 1350 worker); |
| 1351 } | 1351 } |
| 1352 | 1352 |
| 1353 } // namespace content | 1353 } // namespace content |
| OLD | NEW |