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

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

Issue 177953004: Enable SurfaceTexture based zero-copy texture uploading on Android platform Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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 (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 "base/callback.h" 10 #include "base/callback.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/platform_file.h" 12 #include "base/platform_file.h"
13 #include "base/process/process.h" 13 #include "base/process/process.h"
14 #include "content/public/browser/file_descriptor_info.h" 14 #include "content/public/browser/file_descriptor_info.h"
15 #include "ui/gl/android/surface_texture.h"
15 16
16 namespace content { 17 namespace content {
17 18
18 typedef base::Callback<void(base::ProcessHandle)> StartChildProcessCallback; 19 typedef base::Callback<void(base::ProcessHandle)> StartChildProcessCallback;
19 // Starts a process as a child process spawned by the Android 20 // Starts a process as a child process spawned by the Android
20 // ActivityManager. 21 // ActivityManager.
21 // The created process handle is returned to the |callback| on success, 0 is 22 // The created process handle is returned to the |callback| on success, 0 is
22 // retuned if the process could not be created. 23 // retuned if the process could not be created.
23 void StartChildProcess( 24 void StartChildProcess(
24 const CommandLine::StringVector& argv, 25 const CommandLine::StringVector& argv,
25 const std::vector<FileDescriptorInfo>& files_to_register, 26 const std::vector<FileDescriptorInfo>& files_to_register,
26 const StartChildProcessCallback& callback); 27 const StartChildProcessCallback& callback);
27 28
28 // Stops a child process based on the handle returned form 29 // Stops a child process based on the handle returned form
29 // StartChildProcess. 30 // StartChildProcess.
30 void StopChildProcess(base::ProcessHandle handle); 31 void StopChildProcess(base::ProcessHandle handle);
31 32
32 bool IsChildProcessOomProtected(base::ProcessHandle handle); 33 bool IsChildProcessOomProtected(base::ProcessHandle handle);
33 34
35 void SetupSurfaceTextureToRenderer(
36 base::ProcessHandle process,
37 void* gpu_memory_buffer,
38 scoped_refptr<gfx::SurfaceTexture> surface_texture);
39
34 bool RegisterChildProcessLauncher(JNIEnv* env); 40 bool RegisterChildProcessLauncher(JNIEnv* env);
35 41
36 } // namespace content 42 } // namespace content
37 43
38 #endif // CONTENT_BROWSER_ANDROID_CHILD_PROCESS_LAUNCHER_ANDROID_H_ 44 #endif // CONTENT_BROWSER_ANDROID_CHILD_PROCESS_LAUNCHER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698