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

Unified Diff: mojo/services/view_manager/window_tree_host_impl.cc

Issue 510553002: Teach the native viewport service to draw a Surface into itself (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
« no previous file with comments | « mojo/services/public/interfaces/surfaces/surfaces.mojom ('k') | mojo/shell/context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/view_manager/window_tree_host_impl.cc
diff --git a/mojo/services/view_manager/window_tree_host_impl.cc b/mojo/services/view_manager/window_tree_host_impl.cc
index 793225d3c5ec8acf41fc8f25c355c1e9092b56ca..805018bb1c3a470a4a1daaa018048ebbed1dfe1b 100644
--- a/mojo/services/view_manager/window_tree_host_impl.cc
+++ b/mojo/services/view_manager/window_tree_host_impl.cc
@@ -162,6 +162,7 @@ ui::EventProcessor* WindowTreeHostImpl::GetEventProcessor() {
void WindowTreeHostImpl::OnCreated(uint64_t native_viewport_id) {
CommandBufferPtr cb;
+ // TODO(jamesr): Output to a surface instead.
gpu_service_->CreateOnscreenGLES2Context(
native_viewport_id, Size::From(bounds_.size()), Get(&cb));
widget_ = bit_cast<gfx::AcceleratedWidget>(
« no previous file with comments | « mojo/services/public/interfaces/surfaces/surfaces.mojom ('k') | mojo/shell/context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698