OLD | NEW |
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_BROWSER_ANDROID_BROWSER_SURFACE_TEXTURE_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_BROWSER_SURFACE_TEXTURE_MANAGER_H_ |
6 #define CONTENT_BROWSER_ANDROID_BROWSER_SURFACE_TEXTURE_MANAGER_H_ | 6 #define CONTENT_BROWSER_ANDROID_BROWSER_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/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/singleton.h" | 11 #include "base/memory/singleton.h" |
12 #include "content/common/android/surface_texture_peer.h" | |
13 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
| 13 #include "gpu/ipc/common/android/surface_texture_peer.h" |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 | 16 |
17 class CONTENT_EXPORT BrowserSurfaceTextureManager | 17 class CONTENT_EXPORT BrowserSurfaceTextureManager |
18 : public SurfaceTextureManager, | 18 : public gpu::SurfaceTextureManager, |
19 public SurfaceTexturePeer { | 19 public gpu::SurfaceTexturePeer { |
20 public: | 20 public: |
21 static BrowserSurfaceTextureManager* GetInstance(); | 21 static BrowserSurfaceTextureManager* GetInstance(); |
22 | 22 |
23 // Overridden from SurfaceTextureManager: | 23 // Overridden from SurfaceTextureManager: |
24 void RegisterSurfaceTexture(int surface_texture_id, | 24 void RegisterSurfaceTexture(int surface_texture_id, |
25 int client_id, | 25 int client_id, |
26 gfx::SurfaceTexture* surface_texture) override; | 26 gfx::SurfaceTexture* surface_texture) override; |
27 void UnregisterSurfaceTexture(int surface_texture_id, int client_id) override; | 27 void UnregisterSurfaceTexture(int surface_texture_id, int client_id) override; |
28 gfx::AcceleratedWidget AcquireNativeWidgetForSurfaceTexture( | 28 gfx::AcceleratedWidget AcquireNativeWidgetForSurfaceTexture( |
29 int surface_texture_id) override; | 29 int surface_texture_id) override; |
(...skipping 10 matching lines...) Expand all Loading... |
40 | 40 |
41 BrowserSurfaceTextureManager(); | 41 BrowserSurfaceTextureManager(); |
42 ~BrowserSurfaceTextureManager() override; | 42 ~BrowserSurfaceTextureManager() override; |
43 | 43 |
44 DISALLOW_COPY_AND_ASSIGN(BrowserSurfaceTextureManager); | 44 DISALLOW_COPY_AND_ASSIGN(BrowserSurfaceTextureManager); |
45 }; | 45 }; |
46 | 46 |
47 } // namespace content | 47 } // namespace content |
48 | 48 |
49 #endif // CONTENT_BROWSER_ANDROID_BROWSER_SURFACE_TEXTURE_MANAGER_H_ | 49 #endif // CONTENT_BROWSER_ANDROID_BROWSER_SURFACE_TEXTURE_MANAGER_H_ |
OLD | NEW |