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

Unified Diff: content/common/gpu/surface_texture_bridge_android.h

Issue 177953004: Enable SurfaceTexture based zero-copy texture uploading on Android platform Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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/common/gpu/surface_texture_bridge_android.h
diff --git a/content/common/gpu/surface_texture_bridge_android.h b/content/common/gpu/surface_texture_bridge_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..3dc3a0906d10100987947ec2642c07826e25575e
--- /dev/null
+++ b/content/common/gpu/surface_texture_bridge_android.h
@@ -0,0 +1,37 @@
+// Copyright (c) 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_COMMON_GPU_SURFACE_TEXTURE_BRIDGE_ANDROID_H_
+#define CONTENT_COMMON_GPU_SURFACE_TEXTURE_BRIDGE_ANDROID_H_
+
+#include "base/basictypes.h"
+#include "content/common/gpu/gpu_command_buffer_stub.h"
+#include "ui/gl/android/surface_texture.h"
+
+namespace gfx {
+class Size;
+}
+
+namespace content {
+
+class SurfaceTextureBridge {
+ public:
+ static gfx::SurfaceTexture* CreateSurfaceTexture(
+ GpuCommandBufferStub* owner_stub,
+ uint32* gpu_texture_id);
+
+ static bool SetupSurfaceTexturePeer(GpuCommandBufferStub* owner_stub,
+ void* gpu_memory_buffer,
+ gfx::SurfaceTexture* surface_texture);
+
+ private:
+ SurfaceTextureBridge() {}
+ virtual ~SurfaceTextureBridge() {}
+
+ DISALLOW_COPY_AND_ASSIGN(SurfaceTextureBridge);
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMON_GPU_SURFACE_TEXTURE_BRIDGE_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698