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

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

Issue 14876034: Enable Clang warnings for implementation files on all platforms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gypi style tweak Created 7 years, 7 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 | « chrome/browser/ui/android/tab_model/tab_model_unittest.cc ('k') | ui/gfx/screen_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 #include "content/app/android/child_process_service.h" 5 #include "content/app/android/child_process_service.h"
6 6
7 #include <android/native_window_jni.h> 7 #include <android/native_window_jni.h>
8 #include <cpu-features.h> 8 #include <cpu-features.h>
9 9
10 #include "base/android/jni_array.h" 10 #include "base/android/jni_array.h"
(...skipping 29 matching lines...) Expand all
40 } 40 }
41 41
42 virtual ~SurfaceTexturePeerChildImpl() { 42 virtual ~SurfaceTexturePeerChildImpl() {
43 GpuSurfaceLookup::InitInstance(NULL); 43 GpuSurfaceLookup::InitInstance(NULL);
44 } 44 }
45 45
46 virtual void EstablishSurfaceTexturePeer( 46 virtual void EstablishSurfaceTexturePeer(
47 base::ProcessHandle pid, 47 base::ProcessHandle pid,
48 scoped_refptr<gfx::SurfaceTextureBridge> surface_texture_bridge, 48 scoped_refptr<gfx::SurfaceTextureBridge> surface_texture_bridge,
49 int primary_id, 49 int primary_id,
50 int secondary_id) { 50 int secondary_id) OVERRIDE {
51 JNIEnv* env = base::android::AttachCurrentThread(); 51 JNIEnv* env = base::android::AttachCurrentThread();
52 content::Java_ChildProcessService_establishSurfaceTexturePeer( 52 content::Java_ChildProcessService_establishSurfaceTexturePeer(
53 env, service_.obj(), pid, 53 env, service_.obj(), pid,
54 surface_texture_bridge->j_surface_texture().obj(), primary_id, 54 surface_texture_bridge->j_surface_texture().obj(), primary_id,
55 secondary_id); 55 secondary_id);
56 CheckException(env); 56 CheckException(env);
57 } 57 }
58 58
59 virtual gfx::AcceleratedWidget AcquireNativeWidget(int surface_id) OVERRIDE { 59 virtual gfx::AcceleratedWidget AcquireNativeWidget(int surface_id) OVERRIDE {
60 JNIEnv* env = base::android::AttachCurrentThread(); 60 JNIEnv* env = base::android::AttachCurrentThread();
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 ChildProcess* current_process = ChildProcess::current(); 142 ChildProcess* current_process = ChildProcess::current();
143 if (!current_process) 143 if (!current_process)
144 return; 144 return;
145 ChildThread* main_child_thread = current_process->main_thread(); 145 ChildThread* main_child_thread = current_process->main_thread();
146 if (main_child_thread && main_child_thread->message_loop()) 146 if (main_child_thread && main_child_thread->message_loop())
147 main_child_thread->message_loop()->PostTask(FROM_HERE, 147 main_child_thread->message_loop()->PostTask(FROM_HERE,
148 base::Bind(&QuitMainThreadMessageLoop)); 148 base::Bind(&QuitMainThreadMessageLoop));
149 } 149 }
150 150
151 } // namespace content 151 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/ui/android/tab_model/tab_model_unittest.cc ('k') | ui/gfx/screen_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698