Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: content/renderer/renderer_blink_platform_impl.cc

Issue 2643343002: DrawingBuffer: Use gfx::GpuMemoryBuffer directly and set color space (Closed)
Patch Set: Fix buffer format Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after
1078 bool is_software_rendering = host->gpu_info().software_rendering; 1078 bool is_software_rendering = host->gpu_info().software_rendering;
1079 1079
1080 return new WebGraphicsContext3DProviderImpl(std::move(provider), 1080 return new WebGraphicsContext3DProviderImpl(std::move(provider),
1081 is_software_rendering); 1081 is_software_rendering);
1082 } 1082 }
1083 1083
1084 //------------------------------------------------------------------------------ 1084 //------------------------------------------------------------------------------
1085 1085
1086 gpu::GpuMemoryBufferManager* 1086 gpu::GpuMemoryBufferManager*
1087 RendererBlinkPlatformImpl::getGpuMemoryBufferManager() { 1087 RendererBlinkPlatformImpl::getGpuMemoryBufferManager() {
1088 return RenderThreadImpl::current()->GetGpuMemoryBufferManager(); 1088 RenderThreadImpl* thread = RenderThreadImpl::current();
1089 return thread ? thread->GetGpuMemoryBufferManager() : nullptr;
1089 } 1090 }
1090 1091
1091 //------------------------------------------------------------------------------ 1092 //------------------------------------------------------------------------------
1092 1093
1093 std::unique_ptr<cc::SharedBitmap> 1094 std::unique_ptr<cc::SharedBitmap>
1094 RendererBlinkPlatformImpl::allocateSharedBitmap(const blink::WebSize& size) { 1095 RendererBlinkPlatformImpl::allocateSharedBitmap(const blink::WebSize& size) {
1095 return shared_bitmap_manager_ 1096 return shared_bitmap_manager_
1096 ->AllocateSharedBitmap(gfx::Size(size.width, size.height)); 1097 ->AllocateSharedBitmap(gfx::Size(size.width, size.height));
1097 } 1098 }
1098 1099
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
1287 return &trial_token_validator_; 1288 return &trial_token_validator_;
1288 } 1289 }
1289 1290
1290 void RendererBlinkPlatformImpl::workerContextCreated( 1291 void RendererBlinkPlatformImpl::workerContextCreated(
1291 const v8::Local<v8::Context>& worker) { 1292 const v8::Local<v8::Context>& worker) {
1292 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread( 1293 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread(
1293 worker); 1294 worker);
1294 } 1295 }
1295 1296
1296 } // namespace content 1297 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698