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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_COMMON_GPU_SURFACE_TEXTURE_BRIDGE_ANDROID_H_
6 #define CONTENT_COMMON_GPU_SURFACE_TEXTURE_BRIDGE_ANDROID_H_
7
8 #include "base/basictypes.h"
9 #include "content/common/gpu/gpu_command_buffer_stub.h"
10 #include "ui/gl/android/surface_texture.h"
11
12 namespace gfx {
13 class Size;
14 }
15
16 namespace content {
17
18 class SurfaceTextureBridge {
19 public:
20 static gfx::SurfaceTexture* CreateSurfaceTexture(
21 GpuCommandBufferStub* owner_stub,
22 uint32* gpu_texture_id);
23
24 static bool SetupSurfaceTexturePeer(GpuCommandBufferStub* owner_stub,
25 void* gpu_memory_buffer,
26 gfx::SurfaceTexture* surface_texture);
27
28 private:
29 SurfaceTextureBridge() {}
30 virtual ~SurfaceTextureBridge() {}
31
32 DISALLOW_COPY_AND_ASSIGN(SurfaceTextureBridge);
33 };
34
35 } // namespace content
36
37 #endif // CONTENT_COMMON_GPU_SURFACE_TEXTURE_BRIDGE_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698