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

Side by Side Diff: content/browser/android/child_process_launcher_android.h

Issue 1889703002: Android Java Surfaces can now be looked up via GpuSurfaceTracker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | content/browser/android/child_process_launcher_android.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CHILD_PROCESS_LAUNCHER_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_CHILD_PROCESS_LAUNCHER_ANDROID_H_
6 #define CONTENT_BROWSER_ANDROID_CHILD_PROCESS_LAUNCHER_ANDROID_H_ 6 #define CONTENT_BROWSER_ANDROID_CHILD_PROCESS_LAUNCHER_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 30 matching lines...) Expand all
41 41
42 bool IsChildProcessOomProtected(base::ProcessHandle handle); 42 bool IsChildProcessOomProtected(base::ProcessHandle handle);
43 43
44 void SetChildProcessInForeground(base::ProcessHandle handle, 44 void SetChildProcessInForeground(base::ProcessHandle handle,
45 bool in_foreground); 45 bool in_foreground);
46 46
47 void RegisterViewSurface(int surface_id, jobject j_surface); 47 void RegisterViewSurface(int surface_id, jobject j_surface);
48 48
49 void UnregisterViewSurface(int surface_id); 49 void UnregisterViewSurface(int surface_id);
50 50
51 gfx::ScopedJavaSurface GetViewSurface(int surface_id);
52
51 void CreateSurfaceTextureSurface(int surface_texture_id, 53 void CreateSurfaceTextureSurface(int surface_texture_id,
52 int client_id, 54 int client_id,
53 gfx::SurfaceTexture* surface_texture); 55 gfx::SurfaceTexture* surface_texture);
54 56
55 void DestroySurfaceTextureSurface(int surface_texture_id, int client_id); 57 void DestroySurfaceTextureSurface(int surface_texture_id, int client_id);
56 58
57 gfx::ScopedJavaSurface GetSurfaceTextureSurface(int surface_texture_id, 59 gfx::ScopedJavaSurface GetSurfaceTextureSurface(int surface_texture_id,
58 int client_id); 60 int client_id);
59 61
60 bool RegisterChildProcessLauncher(JNIEnv* env); 62 bool RegisterChildProcessLauncher(JNIEnv* env);
61 63
62 } // namespace content 64 } // namespace content
63 65
64 #endif // CONTENT_BROWSER_ANDROID_CHILD_PROCESS_LAUNCHER_ANDROID_H_ 66 #endif // CONTENT_BROWSER_ANDROID_CHILD_PROCESS_LAUNCHER_ANDROID_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/android/child_process_launcher_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698