OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 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 #include "content/common/gpu/stream_texture_manager_android.h" | |
6 | |
7 #include "content/common/android/surface_texture_bridge.h" | |
8 #include "content/common/gpu/gpu_channel.h" | |
9 | |
10 namespace content { | |
11 | |
12 StreamTextureManagerAndroid::StreamTextureAndroid::StreamTextureAndroid( | |
13 GpuChannel* channel, int service_id) | |
14 : surface_texture_(new content::SurfaceTextureBridge(service_id)), | |
jam
2012/07/02 17:54:06
nit: ditto
qinmin
2012/07/02 19:29:50
Done.
| |
15 channel_(channel) { | |
16 NOTIMPLEMENTED(); | |
17 } | |
18 | |
19 StreamTextureManagerAndroid::StreamTextureAndroid::~StreamTextureAndroid() { | |
20 NOTIMPLEMENTED(); | |
21 } | |
22 | |
23 void StreamTextureManagerAndroid::StreamTextureAndroid::Update() { | |
24 surface_texture_->UpdateTexImage(); | |
25 } | |
26 | |
27 StreamTextureManagerAndroid::StreamTextureManagerAndroid( | |
28 GpuChannel* channel) | |
29 : channel_(channel) { | |
30 NOTIMPLEMENTED(); | |
31 } | |
32 | |
33 StreamTextureManagerAndroid::~StreamTextureManagerAndroid() { | |
34 NOTIMPLEMENTED(); | |
35 } | |
36 | |
37 GLuint StreamTextureManagerAndroid::CreateStreamTexture(uint32 service_id, | |
38 uint32 client_id) { | |
39 // service_id: the actual GL texture name | |
40 // client_id: texture name given to the client in the renderer (unused here) | |
41 // The return value here is what glCreateStreamTextureCHROMIUM() will return | |
42 // to identify the stream (i.e. surface texture). | |
43 StreamTextureAndroid* texture = new StreamTextureAndroid( | |
44 channel_, service_id); | |
45 return textures_.Add(texture); | |
46 } | |
47 | |
48 void StreamTextureManagerAndroid::DestroyStreamTexture(uint32 service_id) { | |
49 NOTIMPLEMENTED(); | |
50 } | |
51 | |
52 gpu::StreamTexture* StreamTextureManagerAndroid::LookupStreamTexture( | |
53 uint32 service_id) { | |
54 NOTIMPLEMENTED(); | |
55 return NULL; | |
56 } | |
57 | |
58 } // namespace content | |
OLD | NEW |