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

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
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 d214a4a41aff81e99b0cda2b31c0b21cc84bfcce..e8994e4cfa4fd2d880beacc1f37b44d9ec9012b0 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>(

Powered by Google App Engine
This is Rietveld 408576698