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

Side by Side Diff: content/common/android/surface_texture_manager.h

Issue 701033005: content: Move type selection logic out of GpuMemoryBufferImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address review feedback Created 6 years, 1 month 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
« no previous file with comments | « content/common/BUILD.gn ('k') | content/common/child_process_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_COMMON_ANDROID_SURFACE_TEXTURE_MANAGER_H_ 5 #ifndef CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_MANAGER_H_
6 #define CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_MANAGER_H_ 6 #define CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_MANAGER_H_
7 7
8 #include "content/common/content_export.h"
8 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
9 10
10 namespace gfx { 11 namespace gfx {
11 class SurfaceTexture; 12 class SurfaceTexture;
12 } 13 }
13 14
14 namespace content { 15 namespace content {
15 16
16 class SurfaceTextureManager { 17 class CONTENT_EXPORT SurfaceTextureManager {
17 public: 18 public:
18 static SurfaceTextureManager* GetInstance(); 19 static SurfaceTextureManager* GetInstance();
19 static void InitInstance(SurfaceTextureManager* instance); 20 static void InitInstance(SurfaceTextureManager* instance);
20 21
21 // Register a surface texture for use in another process. 22 // Register a surface texture for use in another process.
22 virtual void RegisterSurfaceTexture(int surface_texture_id, 23 virtual void RegisterSurfaceTexture(int surface_texture_id,
23 int client_id, 24 int client_id,
24 gfx::SurfaceTexture* surface_texture) = 0; 25 gfx::SurfaceTexture* surface_texture) = 0;
25 26
26 // Unregister a surface texture previously registered for use in another 27 // Unregister a surface texture previously registered for use in another
27 // process. 28 // process.
28 virtual void UnregisterSurfaceTexture(int surface_texture_id, 29 virtual void UnregisterSurfaceTexture(int surface_texture_id,
29 int client_id) = 0; 30 int client_id) = 0;
30 31
31 // Acquire native widget for a registered surface texture. 32 // Acquire native widget for a registered surface texture.
32 virtual gfx::AcceleratedWidget AcquireNativeWidgetForSurfaceTexture( 33 virtual gfx::AcceleratedWidget AcquireNativeWidgetForSurfaceTexture(
33 int surface_texture_id) = 0; 34 int surface_texture_id) = 0;
34 35
35 protected: 36 protected:
36 virtual ~SurfaceTextureManager() {} 37 virtual ~SurfaceTextureManager() {}
37 }; 38 };
38 39
39 } // namespace content 40 } // namespace content
40 41
41 #endif // CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_MANAGER_H_ 42 #endif // CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_MANAGER_H_
OLDNEW
« no previous file with comments | « content/common/BUILD.gn ('k') | content/common/child_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698