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

Unified Diff: chrome/browser/android/vr_shell/mailbox_to_surface_bridge.h

Issue 2969153002: vr/gpu: BrowserGpuChannelHostFactory should be called on the same thread. (Closed)
Patch Set: comment Created 3 years, 5 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 | « no previous file | chrome/browser/android/vr_shell/mailbox_to_surface_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/mailbox_to_surface_bridge.h
diff --git a/chrome/browser/android/vr_shell/mailbox_to_surface_bridge.h b/chrome/browser/android/vr_shell/mailbox_to_surface_bridge.h
index 8ba1540a127eb590311680e157f2527fa9e7ab11..1704de325ba7f76d1f64d7614a02d4edef439cf2 100644
--- a/chrome/browser/android/vr_shell/mailbox_to_surface_bridge.h
+++ b/chrome/browser/android/vr_shell/mailbox_to_surface_bridge.h
@@ -8,6 +8,7 @@
#include "base/memory/weak_ptr.h"
namespace gl {
+class ScopedJavaSurface;
class SurfaceTexture;
}
@@ -39,7 +40,8 @@ class MailboxToSurfaceBridge {
bool CopyMailboxToSurfaceAndSwap(const gpu::MailboxHolder& mailbox);
private:
- void OnContextAvailable(scoped_refptr<cc::ContextProvider>);
+ void OnContextAvailable(std::unique_ptr<gl::ScopedJavaSurface> surface,
+ scoped_refptr<cc::ContextProvider>);
void InitializeRenderer();
void DestroyContext();
void DrawQuad(unsigned int textureHandle);
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/mailbox_to_surface_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698