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

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: rebase Created 6 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 | Annotate | Revision Log
« no previous file with comments | « ui/gfx/gpu_memory_buffer.h ('k') | ui/gl/android/surface_texture_tracker.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 primary_id,
24 int secondary_id) = 0;
25
26 protected:
27 virtual ~SurfaceTextureTracker() {}
28 };
29
30 } // namespace gfx
31
32 #endif // UI_GL_ANDROID_SURFACE_TEXTURE_TRACKER_H_
OLDNEW
« no previous file with comments | « ui/gfx/gpu_memory_buffer.h ('k') | ui/gl/android/surface_texture_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698