Chromium Code Reviews

Side by Side Diff: ui/gl/android/surface_texture_tracker.h

Issue 195583003: Add initial GpuMemoryBufferSurfaceTexture implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_GL_ANDROID_SURFACE_TEXTURE_TRACKER_H_
6 #define UI_GL_ANDROID_SURFACE_TEXTURE_TRACKER_H_
7
8 #include "base/memory/ref_counted.h"
9 #include "ui/gl/gl_export.h"
10
11 namespace gfx {
12
13 class SurfaceTexture;
14
15 // This interface is used to take ownership of preallocated surface textures
16 // with specific ids.
17 class GL_EXPORT SurfaceTextureTracker {
18 public:
19 static SurfaceTextureTracker* GetInstance();
20 static void InitInstance(SurfaceTextureTracker* tracker);
21
22 virtual scoped_refptr<SurfaceTexture> AcquireSurfaceTexture(
23 int surface_texture_id) = 0;
24
25 protected:
26 virtual ~SurfaceTextureTracker() {}
27 };
28
29 } // namespace gfx
30
31 #endif // UI_GL_ANDROID_SURFACE_TEXTURE_TRACKER_H_
OLDNEW

Powered by Google App Engine