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

Unified Diff: content/renderer/renderer_blink_platform_impl.cc

Issue 2364633003: color: Set GpuMemoryBuffer color spaces for Canvas (Closed)
Patch Set: Fix constexpr Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/renderer_blink_platform_impl.cc
diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc
index 212a9ec7dc2af291e0c7bac2dc2ad23a51cb1a8a..553205512e367fe0607e0dff06dadec52fbf863b 100644
--- a/content/renderer/renderer_blink_platform_impl.cc
+++ b/content/renderer/renderer_blink_platform_impl.cc
@@ -23,6 +23,7 @@
#include "build/build_config.h"
#include "components/url_formatter/url_formatter.h"
#include "content/child/blob_storage/webblobregistry_impl.h"
+#include "content/child/child_gpu_memory_buffer_manager.h"
#include "content/child/child_shared_bitmap_manager.h"
#include "content/child/database_util.h"
#include "content/child/file_info_util.h"
@@ -1141,6 +1142,13 @@ RendererBlinkPlatformImpl::createSharedOffscreenGraphicsContext3DProvider() {
//------------------------------------------------------------------------------
+gpu::GpuMemoryBufferManager*
+RendererBlinkPlatformImpl::getGpuMemoryBufferManager() {
+ return ChildThreadImpl::current()->gpu_memory_buffer_manager();
+}
+
+//------------------------------------------------------------------------------
+
std::unique_ptr<cc::SharedBitmap>
RendererBlinkPlatformImpl::allocateSharedBitmap(const blink::WebSize& size) {
return ChildThreadImpl::current()

Powered by Google App Engine
This is Rietveld 408576698