Chromium Code Reviews| 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 StreamTextureManagerAndroid::StreamTextureAndroid::StreamTextureAndroid( | |
| 11 GpuChannel* channel, int service_id) | |
| 12 : surface_texture_(new content::SurfaceTextureBridge(service_id)), | |
| 13 channel_(channel) { | |
| 14 NOTIMPLEMENTED(); | |
|
Yaron
2012/06/28 02:53:06
Why all the NOTIMPLEMENTEDS? Still more to refacto
qinmin
2012/06/28 03:23:21
I don't want this change to get too big to review.
| |
| 15 } | |
| 16 | |
| 17 StreamTextureManagerAndroid::StreamTextureAndroid::~StreamTextureAndroid() { | |
| 18 NOTIMPLEMENTED(); | |
| 19 } | |
| 20 | |
| 21 void StreamTextureManagerAndroid::StreamTextureAndroid::Update() { | |
| 22 surface_texture_->UpdateTexImage(); | |
| 23 } | |
| 24 | |
| 25 StreamTextureManagerAndroid::StreamTextureManagerAndroid( | |
| 26 GpuChannel* channel) | |
| 27 : channel_(channel) { | |
| 28 NOTIMPLEMENTED(); | |
| 29 } | |
| 30 | |
| 31 StreamTextureManagerAndroid::~StreamTextureManagerAndroid() { | |
| 32 NOTIMPLEMENTED(); | |
| 33 } | |
| 34 | |
| 35 GLuint StreamTextureManagerAndroid::CreateStreamTexture(uint32 service_id, | |
| 36 uint32 client_id) { | |
| 37 // service_id: the actual GL texture name | |
| 38 // client_id: texture name given to the client in the renderer (unused here) | |
| 39 // The return value here is what glCreateStreamTextureCHROMIUM() will return | |
| 40 // to identify the stream (i.e. surface texture). | |
| 41 StreamTextureAndroid* texture = new StreamTextureAndroid( | |
| 42 channel_, service_id); | |
| 43 return textures_.Add(texture); | |
| 44 } | |
| 45 | |
| 46 void StreamTextureManagerAndroid::DestroyStreamTexture(uint32 service_id) { | |
| 47 NOTIMPLEMENTED(); | |
| 48 } | |
| 49 | |
| 50 gpu::StreamTexture* StreamTextureManagerAndroid::LookupStreamTexture( | |
| 51 uint32 service_id) { | |
| 52 NOTIMPLEMENTED(); | |
| 53 return NULL; | |
| 54 } | |
| OLD | NEW |