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

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

Issue 1845563005: Refactor content/common/gpu into gpu/ipc/service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Drop ref to deleted content_tests_gypi_values.content_unittests_ozone_sources Created 4 years, 8 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_H_
6 #define CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_H_ 6 #define CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 virtual StreamTextureProxy* CreateProxy() = 0; 59 virtual StreamTextureProxy* CreateProxy() = 0;
60 60
61 // Send an IPC message to the browser process to request a java surface 61 // Send an IPC message to the browser process to request a java surface
62 // object for the given stream_id. After the the surface is created, 62 // object for the given stream_id. After the the surface is created,
63 // it will be passed back to the WebMediaPlayerAndroid object identified by 63 // it will be passed back to the WebMediaPlayerAndroid object identified by
64 // the player_id. 64 // the player_id.
65 virtual void EstablishPeer(int32_t stream_id, 65 virtual void EstablishPeer(int32_t stream_id,
66 int player_id, 66 int player_id,
67 int frame_id) = 0; 67 int frame_id) = 0;
68 68
69 // Creates a StreamTexture and returns its id. Sets |*texture_id| to the 69 // Creates a gpu::StreamTexture and returns its id. Sets |*texture_id| to the
70 // client-side id of the StreamTexture. The texture is produced into 70 // client-side id of the gpu::StreamTexture. The texture is produced into
71 // a mailbox so it can be shipped in a VideoFrame. 71 // a mailbox so it can be shipped in a VideoFrame.
72 virtual unsigned CreateStreamTexture(unsigned texture_target, 72 virtual unsigned CreateStreamTexture(unsigned texture_target,
73 unsigned* texture_id, 73 unsigned* texture_id,
74 gpu::Mailbox* texture_mailbox) = 0; 74 gpu::Mailbox* texture_mailbox) = 0;
75 75
76 // Set the streamTexture size for the given stream Id. 76 // Set the streamTexture size for the given stream Id.
77 virtual void SetStreamTextureSize(int32_t texture_id, 77 virtual void SetStreamTextureSize(int32_t texture_id,
78 const gfx::Size& size) = 0; 78 const gfx::Size& size) = 0;
79 79
80 virtual gpu::gles2::GLES2Interface* ContextGL() = 0; 80 virtual gpu::gles2::GLES2Interface* ContextGL() = 0;
81 81
82 virtual void AddObserver(StreamTextureFactoryContextObserver* obs) = 0; 82 virtual void AddObserver(StreamTextureFactoryContextObserver* obs) = 0;
83 virtual void RemoveObserver(StreamTextureFactoryContextObserver* obs) = 0; 83 virtual void RemoveObserver(StreamTextureFactoryContextObserver* obs) = 0;
84 84
85 protected: 85 protected:
86 friend class base::RefCounted<StreamTextureFactory>; 86 friend class base::RefCounted<StreamTextureFactory>;
87 virtual ~StreamTextureFactory() {} 87 virtual ~StreamTextureFactory() {}
88 }; 88 };
89 89
90 } // namespace content 90 } // namespace content
91 91
92 #endif // CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_H_ 92 #endif // CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_H_
OLDNEW
« no previous file with comments | « content/gpu/in_process_gpu_thread.cc ('k') | content/renderer/media/android/webmediaplayer_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698