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

Side by Side Diff: content/renderer/media/android/stream_texture_factory_android.h

Issue 22824009: Remove StreamTextureManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 7 years, 4 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_ANDROID_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_ANDROID_H_
6 #define CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_ANDROID_H_ 6 #define CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_ANDROID_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/layers/video_frame_provider.h" 9 #include "cc/layers/video_frame_provider.h"
10 #include "content/renderer/gpu/stream_texture_host_android.h" 10 #include "content/renderer/gpu/stream_texture_host_android.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // a mailbox so it can be used to ship in a VideoFrame, with a sync point for 79 // a mailbox so it can be used to ship in a VideoFrame, with a sync point for
80 // when the mailbox can be accessed. 80 // when the mailbox can be accessed.
81 unsigned CreateStreamTexture( 81 unsigned CreateStreamTexture(
82 unsigned texture_target, 82 unsigned texture_target,
83 unsigned* texture_id, 83 unsigned* texture_id,
84 gpu::Mailbox* texture_mailbox, 84 gpu::Mailbox* texture_mailbox,
85 unsigned* texture_mailbox_sync_point); 85 unsigned* texture_mailbox_sync_point);
86 86
87 // Destroy the streamTexture for the given texture id, as well as the 87 // Destroy the streamTexture for the given texture id, as well as the
88 // client side texture. 88 // client side texture.
89 void DestroyStreamTexture(unsigned texture_id); 89 void DestroyStreamTexture(unsigned stream_id, unsigned texture_id);
90 90
91 // Set the streamTexture size for the given stream Id. 91 // Set the streamTexture size for the given stream Id.
92 void SetStreamTextureSize(int32 texture_id, const gfx::Size& size); 92 void SetStreamTextureSize(int32 texture_id, const gfx::Size& size);
93 93
94 private: 94 private:
95 WebKit::WebGraphicsContext3D* context_; 95 WebKit::WebGraphicsContext3D* context_;
96 scoped_refptr<GpuChannelHost> channel_; 96 scoped_refptr<GpuChannelHost> channel_;
97 int view_id_; 97 int view_id_;
98 98
99 DISALLOW_IMPLICIT_CONSTRUCTORS(StreamTextureFactory); 99 DISALLOW_IMPLICIT_CONSTRUCTORS(StreamTextureFactory);
100 }; 100 };
101 101
102 } // namespace content 102 } // namespace content
103 103
104 #endif // CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_ANDROID_H_ 104 #endif // CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_ANDROID_H_
OLDNEW
« no previous file with comments | « content/content_common.gypi ('k') | content/renderer/media/android/stream_texture_factory_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698