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

Unified Diff: blimp/engine/app/ui/blimp_ui_context_factory.cc

Issue 1808313002: Register surface namespace in BlimpUiContextFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Host surface_utils into chrome/public Created 4 years, 9 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: blimp/engine/app/ui/blimp_ui_context_factory.cc
diff --git a/blimp/engine/app/ui/blimp_ui_context_factory.cc b/blimp/engine/app/ui/blimp_ui_context_factory.cc
index d41150a294d2abfa85a610a1a97effe1f4cbb362..f799912298c5cc347e6e5993d6b6e20a5e1fb52e 100644
--- a/blimp/engine/app/ui/blimp_ui_context_factory.cc
+++ b/blimp/engine/app/ui/blimp_ui_context_factory.cc
@@ -7,6 +7,7 @@
#include "cc/output/output_surface.h"
#include "cc/resources/shared_bitmap_manager.h"
#include "cc/surfaces/surface_id_allocator.h"
+#include "content/public/browser/surface_utils.h"
#include "third_party/khronos/GLES2/gl2.h"
#include "ui/compositor/reflector.h"
@@ -70,8 +71,11 @@ cc::TaskGraphRunner* BlimpUiContextFactory::GetTaskGraphRunner() {
scoped_ptr<cc::SurfaceIdAllocator>
BlimpUiContextFactory::CreateSurfaceIdAllocator() {
- return make_scoped_ptr(
- new cc::SurfaceIdAllocator(next_surface_id_namespace_++));
+ scoped_ptr<cc::SurfaceIdAllocator> allocator =
+ make_scoped_ptr(new cc::SurfaceIdAllocator(next_surface_id_namespace_++));
+ if (content::GetSurfaceManager())
+ allocator->RegisterSurfaceIdNamespace(content::GetSurfaceManager());
+ return allocator;
}
void BlimpUiContextFactory::ResizeDisplay(ui::Compositor* compositor,
« no previous file with comments | « no previous file | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | content/public/browser/surface_utils.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698