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

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

Issue 973403002: Address NewApi warnings in src/ui. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 UI_GL_ANDROID_SURFACE_TEXTURE_H_ 5 #ifndef UI_GL_ANDROID_SURFACE_TEXTURE_H_
6 #define UI_GL_ANDROID_SURFACE_TEXTURE_H_ 6 #define UI_GL_ANDROID_SURFACE_TEXTURE_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 28 matching lines...) Expand all
39 // to allow the image content producer to take ownership 39 // to allow the image content producer to take ownership
40 // of the image buffer. 40 // of the image buffer.
41 // This is *only* supported on SurfaceTexture instantiated via 41 // This is *only* supported on SurfaceTexture instantiated via
42 // |CreateSingleBuffered(...)|. 42 // |CreateSingleBuffered(...)|.
43 void ReleaseTexImage(); 43 void ReleaseTexImage();
44 44
45 // Retrieve the 4x4 texture coordinate transform matrix associated with the 45 // Retrieve the 4x4 texture coordinate transform matrix associated with the
46 // texture image set by the most recent call to updateTexImage. 46 // texture image set by the most recent call to updateTexImage.
47 void GetTransformMatrix(float mtx[16]); 47 void GetTransformMatrix(float mtx[16]);
48 48
49 // Set the default size of the image buffers.
50 void SetDefaultBufferSize(int width, int height);
51
52 // Attach the SurfaceTexture to the texture currently bound to 49 // Attach the SurfaceTexture to the texture currently bound to
53 // GL_TEXTURE_EXTERNAL_OES. 50 // GL_TEXTURE_EXTERNAL_OES.
54 void AttachToGLContext(); 51 void AttachToGLContext();
55 52
56 // Detaches the SurfaceTexture from the context that owns its current GL 53 // Detaches the SurfaceTexture from the context that owns its current GL
57 // texture. Must be called with that context current on the calling thread. 54 // texture. Must be called with that context current on the calling thread.
58 void DetachFromGLContext(); 55 void DetachFromGLContext();
59 56
60 // Creates a native render surface for this surface texture. 57 // Creates a native render surface for this surface texture.
61 // The caller must release the underlying reference when done with the handle 58 // The caller must release the underlying reference when done with the handle
(...skipping 20 matching lines...) Expand all
82 79
83 // Java SurfaceTexture instance. 80 // Java SurfaceTexture instance.
84 base::android::ScopedJavaGlobalRef<jobject> j_surface_texture_; 81 base::android::ScopedJavaGlobalRef<jobject> j_surface_texture_;
85 82
86 DISALLOW_COPY_AND_ASSIGN(SurfaceTexture); 83 DISALLOW_COPY_AND_ASSIGN(SurfaceTexture);
87 }; 84 };
88 85
89 } // namespace gfx 86 } // namespace gfx
90 87
91 #endif // UI_GL_ANDROID_SURFACE_TEXTURE_H_ 88 #endif // UI_GL_ANDROID_SURFACE_TEXTURE_H_
OLDNEW
« no previous file with comments | « ui/android/java/src/org/chromium/ui/widget/TextViewWithClickableSpans.java ('k') | ui/gl/android/surface_texture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698