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

Side by Side Diff: content/browser/android/in_process_surface_texture_manager.h

Issue 1770073002: SurfaceTexture* => gpu/ipc/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restored BUILD.gn bits Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_BROWSER_ANDROID_IN_PROCESS_SURFACE_TEXTURE_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_IN_PROCESS_SURFACE_TEXTURE_MANAGER_H_
6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SURFACE_TEXTURE_MANAGER_H_ 6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SURFACE_TEXTURE_MANAGER_H_
7 7
8 #include "content/common/android/surface_texture_manager.h" 8 #include "gpu/ipc/common/android/surface_texture_manager.h"
9 9
10 #include "base/containers/scoped_ptr_hash_map.h" 10 #include "base/containers/scoped_ptr_hash_map.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/singleton.h" 13 #include "base/memory/singleton.h"
14 #include "base/synchronization/lock.h" 14 #include "base/synchronization/lock.h"
15 #include "content/common/android/surface_texture_peer.h"
16 #include "content/common/content_export.h" 15 #include "content/common/content_export.h"
16 #include "gpu/ipc/common/android/surface_texture_peer.h"
17 #include "ui/gl/android/scoped_java_surface.h" 17 #include "ui/gl/android/scoped_java_surface.h"
18 18
19 namespace content { 19 namespace content {
20 20
21 class CONTENT_EXPORT InProcessSurfaceTextureManager 21 class CONTENT_EXPORT InProcessSurfaceTextureManager
22 : public SurfaceTextureManager, 22 : public gpu::SurfaceTextureManager,
23 public SurfaceTexturePeer { 23 public gpu::SurfaceTexturePeer {
24 public: 24 public:
25 static InProcessSurfaceTextureManager* GetInstance(); 25 static InProcessSurfaceTextureManager* GetInstance();
26 26
27 // Overridden from SurfaceTextureManager: 27 // Overridden from SurfaceTextureManager:
28 void RegisterSurfaceTexture(int surface_texture_id, 28 void RegisterSurfaceTexture(int surface_texture_id,
29 int client_id, 29 int client_id,
30 gfx::SurfaceTexture* surface_texture) override; 30 gfx::SurfaceTexture* surface_texture) override;
31 void UnregisterSurfaceTexture(int surface_texture_id, int client_id) override; 31 void UnregisterSurfaceTexture(int surface_texture_id, int client_id) override;
32 gfx::AcceleratedWidget AcquireNativeWidgetForSurfaceTexture( 32 gfx::AcceleratedWidget AcquireNativeWidgetForSurfaceTexture(
33 int surface_texture_id) override; 33 int surface_texture_id) override;
(...skipping 15 matching lines...) Expand all
49 base::ScopedPtrHashMap<int, scoped_ptr<gfx::ScopedJavaSurface>>; 49 base::ScopedPtrHashMap<int, scoped_ptr<gfx::ScopedJavaSurface>>;
50 SurfaceTextureMap surface_textures_; 50 SurfaceTextureMap surface_textures_;
51 base::Lock lock_; 51 base::Lock lock_;
52 52
53 DISALLOW_COPY_AND_ASSIGN(InProcessSurfaceTextureManager); 53 DISALLOW_COPY_AND_ASSIGN(InProcessSurfaceTextureManager);
54 }; 54 };
55 55
56 } // namespace content 56 } // namespace content
57 57
58 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SURFACE_TEXTURE_MANAGER_H_ 58 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SURFACE_TEXTURE_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/android/browser_surface_texture_manager.h ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698