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

Unified Diff: content/browser/android/browser_surface_texture_manager.h

Issue 634643002: content: Out-of-process GPU service support for SurfaceTexture backed GpuMemoryBuffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one last build fix Created 6 years, 2 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/android/browser_surface_texture_manager.h
diff --git a/content/browser/android/browser_surface_texture_manager.h b/content/browser/android/browser_surface_texture_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..0429bb36f3071d9e30b518980803674a616abe87
--- /dev/null
+++ b/content/browser/android/browser_surface_texture_manager.h
@@ -0,0 +1,43 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_BROWSER_ANDROID_BROWSER_SURFACE_TEXTURE_MANAGER_H_
+#define CONTENT_BROWSER_ANDROID_BROWSER_SURFACE_TEXTURE_MANAGER_H_
+
+#include "content/common/android/surface_texture_manager.h"
+
+#include "content/common/android/surface_texture_peer.h"
+
+namespace content {
+
+class BrowserSurfaceTextureManager : public SurfaceTextureManager,
+ public SurfaceTexturePeer {
+ public:
+ BrowserSurfaceTextureManager();
+ virtual ~BrowserSurfaceTextureManager();
+
+ // Overridden from SurfaceTextureManager:
+ virtual void RegisterSurfaceTexture(
+ int surface_texture_id,
+ int client_id,
+ gfx::SurfaceTexture* surface_texture) override;
+ virtual void UnregisterSurfaceTexture(int surface_texture_id,
+ int client_id) override;
+ virtual gfx::AcceleratedWidget AcquireNativeWidget(int surface_texture_id,
+ int client_id) override;
+
+ // Overridden from SurfaceTexturePeer:
+ virtual void EstablishSurfaceTexturePeer(
+ base::ProcessHandle render_process_handle,
+ scoped_refptr<gfx::SurfaceTexture> surface_texture,
+ int render_frame_id,
+ int player_id) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(BrowserSurfaceTextureManager);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_ANDROID_BROWSER_SURFACE_TEXTURE_MANAGER_H_
« no previous file with comments | « content/browser/android/browser_jni_registrar.cc ('k') | content/browser/android/browser_surface_texture_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698