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

Side by Side Diff: gpu/command_buffer/service/stream_texture_manager_in_process_android.h

Issue 1844843002: android: Remove in-process video path (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove commented out code + rebase again 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef GPU_STREAM_TEXTURE_MANAGER_IN_PROCESS_ANDROID_H_
6 #define GPU_STREAM_TEXTURE_MANAGER_IN_PROCESS_ANDROID_H_
7
8 #include <stdint.h>
9
10 #include <map>
11
12 #include "base/macros.h"
13 #include "base/memory/ref_counted.h"
14 #include "base/memory/weak_ptr.h"
15 #include "base/synchronization/lock.h"
16 #include "base/threading/non_thread_safe.h"
17
18 namespace gfx {
19 class SurfaceTexture;
20 }
21
22 namespace gpu {
23
24 namespace gles2 {
25 class TextureManager;
26 }
27
28 class StreamTextureManagerInProcess : public base::NonThreadSafe {
29 public:
30 StreamTextureManagerInProcess();
31 ~StreamTextureManagerInProcess();
32
33 uint32_t CreateStreamTexture(uint32_t client_texture_id,
34 gles2::TextureManager* texture_manager);
35
36 // This method can be called from any thread.
37 scoped_refptr<gfx::SurfaceTexture> GetSurfaceTexture(uint32_t stream_id);
38
39 private:
40 void OnReleaseStreamTexture(uint32_t stream_id);
41
42 typedef std::map<uint32_t, scoped_refptr<gfx::SurfaceTexture>> TextureMap;
43 TextureMap textures_;
44 base::Lock map_lock_;
45 uint32_t next_id_;
46
47 base::WeakPtrFactory<StreamTextureManagerInProcess> weak_factory_;
48 DISALLOW_COPY_AND_ASSIGN(StreamTextureManagerInProcess);
49 };
50
51 } // gpu
52
53 #endif // GPU_STREAM_TEXTURE_MANAGER_IN_PROCESS_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698