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

Unified Diff: content/browser/renderer_host/render_process_host_impl.h

Issue 302443008: content: Always allocate GpuMemoryBuffers on UI thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: one more android build fix Created 6 years, 7 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/browser/renderer_host/render_process_host_impl.h
diff --git a/content/browser/renderer_host/render_process_host_impl.h b/content/browser/renderer_host/render_process_host_impl.h
index 1749c5d7eef614bfadc525ee2e98a2eea4bc796d..89b7255c1e3e285e1de196113afa0dd7f4b17f49 100644
--- a/content/browser/renderer_host/render_process_host_impl.h
+++ b/content/browser/renderer_host/render_process_host_impl.h
@@ -22,6 +22,10 @@
#include "ipc/ipc_platform_file.h"
#include "mojo/public/cpp/bindings/interface_ptr.h"
+#if defined(OS_MACOSX)
+#include "base/mac/scoped_cftyperef.h"
+#endif
+
struct ViewHostMsg_CompositorSurfaceBuffersSwapped_Params;
namespace base {
@@ -31,6 +35,7 @@ class MessageLoop;
namespace gfx {
class Size;
+struct GpuMemoryBufferHandle;
}
namespace content {
@@ -317,6 +322,15 @@ class CONTENT_EXPORT RenderProcessHostImpl
void SendDisableAecDumpToRenderer();
#endif
+ // GpuMemoryBuffer allocation handler.
+ void OnAllocateGpuMemoryBuffer(uint32 width,
+ uint32 height,
+ uint32 internalformat,
+ uint32 usage,
+ IPC::Message* reply);
+ void GpuMemoryBufferAllocated(IPC::Message* reply,
+ const gfx::GpuMemoryBufferHandle& handle);
+
scoped_ptr<MojoApplicationHost> mojo_application_host_;
bool mojo_activation_required_;
@@ -436,6 +450,10 @@ class CONTENT_EXPORT RenderProcessHostImpl
base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
+#if defined(OS_MACOSX)
+ base::ScopedCFTypeRef<CFTypeRef> last_io_surface_;
+#endif
+
DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
};
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698