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

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

Issue 12388038: Android: Remove Surface cruft (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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"
(...skipping 22 matching lines...) Expand all
33 // implement gpu::StreamTextureManager: 33 // implement gpu::StreamTextureManager:
34 virtual GLuint CreateStreamTexture(uint32 service_id, 34 virtual GLuint CreateStreamTexture(uint32 service_id,
35 uint32 client_id) OVERRIDE; 35 uint32 client_id) OVERRIDE;
36 virtual void DestroyStreamTexture(uint32 service_id) OVERRIDE; 36 virtual void DestroyStreamTexture(uint32 service_id) OVERRIDE;
37 virtual gpu::StreamTexture* LookupStreamTexture(uint32 service_id) OVERRIDE; 37 virtual gpu::StreamTexture* LookupStreamTexture(uint32 service_id) OVERRIDE;
38 38
39 // Methods invoked from GpuChannel. 39 // Methods invoked from GpuChannel.
40 void RegisterStreamTextureProxy( 40 void RegisterStreamTextureProxy(
41 int32 stream_id, const gfx::Size& initial_size, int32 route_id); 41 int32 stream_id, const gfx::Size& initial_size, int32 route_id);
42 void EstablishStreamTexture( 42 void EstablishStreamTexture(
43 int32 stream_id, content::SurfaceTexturePeer::SurfaceTextureTarget type, 43 int32 stream_id, int32 primary_id, int32 secondary_id);
44 int32 primary_id, int32 secondary_id);
45 44
46 // Send new transform matrix. 45 // Send new transform matrix.
47 void SendMatrixChanged(int route_id, 46 void SendMatrixChanged(int route_id,
48 const GpuStreamTextureMsg_MatrixChanged_Params& params); 47 const GpuStreamTextureMsg_MatrixChanged_Params& params);
49 48
50 private: 49 private:
51 // The stream texture class for android. 50 // The stream texture class for android.
52 class StreamTextureAndroid 51 class StreamTextureAndroid
53 : public gpu::StreamTexture, 52 : public gpu::StreamTexture,
54 public base::SupportsWeakPtr<StreamTextureAndroid> { 53 public base::SupportsWeakPtr<StreamTextureAndroid> {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // Map for more convenient lookup. 97 // Map for more convenient lookup.
99 typedef IDMap<gpu::StreamTexture, IDMapExternalPointer> TextureServiceIdMap; 98 typedef IDMap<gpu::StreamTexture, IDMapExternalPointer> TextureServiceIdMap;
100 TextureServiceIdMap textures_from_service_id_; 99 TextureServiceIdMap textures_from_service_id_;
101 100
102 DISALLOW_COPY_AND_ASSIGN(StreamTextureManagerAndroid); 101 DISALLOW_COPY_AND_ASSIGN(StreamTextureManagerAndroid);
103 }; 102 };
104 103
105 } // namespace content 104 } // namespace content
106 105
107 #endif // CONTENT_COMMON_GPU_STREAM_TEXTURE_MANAGER_ANDROID_H_ 106 #endif // CONTENT_COMMON_GPU_STREAM_TEXTURE_MANAGER_ANDROID_H_
OLDNEW
« no previous file with comments | « content/common/gpu/media/android_video_decode_accelerator.cc ('k') | content/common/gpu/stream_texture_manager_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698