OLD | NEW |
(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_ |
OLD | NEW |