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

Side by Side Diff: content/app/android/sandboxed_process_service.cc

Issue 12388038: Android: Remove Surface cruft (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
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 #include "content/app/android/sandboxed_process_service.h" 5 #include "content/app/android/sandboxed_process_service.h"
6 6
7 #include <cpu-features.h> 7 #include <cpu-features.h>
8 8
9 #include "base/android/jni_array.h" 9 #include "base/android/jni_array.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 18 matching lines...) Expand all
29 // org.chromium.content.app.SandboxedProcessService. 29 // org.chromium.content.app.SandboxedProcessService.
30 SurfaceTexturePeerSandboxedImpl(jobject service) 30 SurfaceTexturePeerSandboxedImpl(jobject service)
31 : service_(service) { 31 : service_(service) {
32 } 32 }
33 33
34 virtual ~SurfaceTexturePeerSandboxedImpl() { 34 virtual ~SurfaceTexturePeerSandboxedImpl() {
35 } 35 }
36 36
37 virtual void EstablishSurfaceTexturePeer( 37 virtual void EstablishSurfaceTexturePeer(
38 base::ProcessHandle pid, 38 base::ProcessHandle pid,
39 SurfaceTextureTarget type,
40 scoped_refptr<content::SurfaceTextureBridge> surface_texture_bridge, 39 scoped_refptr<content::SurfaceTextureBridge> surface_texture_bridge,
41 int primary_id, 40 int primary_id,
42 int secondary_id) { 41 int secondary_id) {
43 JNIEnv* env = base::android::AttachCurrentThread(); 42 JNIEnv* env = base::android::AttachCurrentThread();
44 content::Java_SandboxedProcessService_establishSurfaceTexturePeer( 43 content::Java_SandboxedProcessService_establishSurfaceTexturePeer(
45 env, service_, pid, type, 44 env, service_, pid,
46 surface_texture_bridge->j_surface_texture().obj(), primary_id, 45 surface_texture_bridge->j_surface_texture().obj(), primary_id,
47 secondary_id); 46 secondary_id);
48 CheckException(env); 47 CheckException(env);
49 } 48 }
50 49
51 private: 50 private:
52 // The instance of org.chromium.content.app.SandboxedProcessService. 51 // The instance of org.chromium.content.app.SandboxedProcessService.
53 jobject service_; 52 jobject service_;
54 53
55 DISALLOW_COPY_AND_ASSIGN(SurfaceTexturePeerSandboxedImpl); 54 DISALLOW_COPY_AND_ASSIGN(SurfaceTexturePeerSandboxedImpl);
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 ChildProcess* current_process = ChildProcess::current(); 118 ChildProcess* current_process = ChildProcess::current();
120 if (!current_process) 119 if (!current_process)
121 return; 120 return;
122 ChildThread* main_child_thread = current_process->main_thread(); 121 ChildThread* main_child_thread = current_process->main_thread();
123 if (main_child_thread && main_child_thread->message_loop()) 122 if (main_child_thread && main_child_thread->message_loop())
124 main_child_thread->message_loop()->PostTask(FROM_HERE, 123 main_child_thread->message_loop()->PostTask(FROM_HERE,
125 base::Bind(&QuitSandboxMainThreadMessageLoop)); 124 base::Bind(&QuitSandboxMainThreadMessageLoop));
126 } 125 }
127 126
128 } // namespace content 127 } // namespace content
OLDNEW
« no previous file with comments | « base/android/jni_generator/jni_generator_tests.py ('k') | content/browser/android/browser_jni_registrar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698