| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_COMMON_GPU_STREAM_TEXTURE_MANAGER_ANDROID_H_ | 5 #ifndef CONTENT_COMMON_GPU_STREAM_TEXTURE_MANAGER_ANDROID_H_ |
| 6 #define CONTENT_COMMON_GPU_STREAM_TEXTURE_MANAGER_ANDROID_H_ | 6 #define CONTENT_COMMON_GPU_STREAM_TEXTURE_MANAGER_ANDROID_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/id_map.h" | 9 #include "base/id_map.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "content/common/android/surface_texture_peer.h" | 12 #include "content/common/android/surface_texture_peer.h" |
| 13 #include "gpu/command_buffer/service/stream_texture.h" | 13 #include "gpu/command_buffer/service/stream_texture.h" |
| 14 #include "gpu/command_buffer/service/stream_texture_manager.h" | 14 #include "gpu/command_buffer/service/stream_texture_manager.h" |
| 15 | 15 |
| 16 class GpuChannel; | |
| 17 struct GpuStreamTextureMsg_MatrixChanged_Params; | 16 struct GpuStreamTextureMsg_MatrixChanged_Params; |
| 18 | 17 |
| 19 namespace gfx { | 18 namespace gfx { |
| 20 class Size; | 19 class Size; |
| 21 } | 20 } |
| 22 | 21 |
| 23 namespace content { | 22 namespace content { |
| 23 class GpuChannel; |
| 24 | 24 |
| 25 class SurfaceTextureBridge; | 25 class SurfaceTextureBridge; |
| 26 | 26 |
| 27 // Class for managing the stream texture. | 27 // Class for managing the stream texture. |
| 28 class StreamTextureManagerAndroid : public gpu::StreamTextureManager { | 28 class StreamTextureManagerAndroid : public gpu::StreamTextureManager { |
| 29 public: | 29 public: |
| 30 StreamTextureManagerAndroid(GpuChannel* channel); | 30 StreamTextureManagerAndroid(GpuChannel* channel); |
| 31 virtual ~StreamTextureManagerAndroid(); | 31 virtual ~StreamTextureManagerAndroid(); |
| 32 | 32 |
| 33 // implement gpu::StreamTextureManager: | 33 // implement gpu::StreamTextureManager: |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 // Map for more convenient lookup. | 98 // Map for more convenient lookup. |
| 99 typedef IDMap<gpu::StreamTexture, IDMapExternalPointer> TextureServiceIdMap; | 99 typedef IDMap<gpu::StreamTexture, IDMapExternalPointer> TextureServiceIdMap; |
| 100 TextureServiceIdMap textures_from_service_id_; | 100 TextureServiceIdMap textures_from_service_id_; |
| 101 | 101 |
| 102 DISALLOW_COPY_AND_ASSIGN(StreamTextureManagerAndroid); | 102 DISALLOW_COPY_AND_ASSIGN(StreamTextureManagerAndroid); |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 } // namespace content | 105 } // namespace content |
| 106 | 106 |
| 107 #endif // CONTENT_COMMON_GPU_STREAM_TEXTURE_MANAGER_ANDROID_H_ | 107 #endif // CONTENT_COMMON_GPU_STREAM_TEXTURE_MANAGER_ANDROID_H_ |
| OLD | NEW |