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

Side by Side Diff: content/common/gpu/stream_texture_manager_android.h

Issue 11227033: Move a bunch of code in content\common (as well as a few left in renderer) to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 2 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 | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/common/gpu/media/gpu_video_decode_accelerator.cc ('k') | content/common/gpu/sync_point_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698