OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "chrome/browser/android/compositor/compositor_view.h" | 5 #include "chrome/browser/android/compositor/compositor_view.h" |
6 | 6 |
7 #include <android/bitmap.h> | 7 #include <android/bitmap.h> |
8 #include <android/native_window_jni.h> | 8 #include <android/native_window_jni.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "content/public/browser/child_process_data.h" | 30 #include "content/public/browser/child_process_data.h" |
31 #include "content/public/browser/web_contents.h" | 31 #include "content/public/browser/web_contents.h" |
32 #include "content/public/common/process_type.h" | 32 #include "content/public/common/process_type.h" |
33 #include "jni/CompositorView_jni.h" | 33 #include "jni/CompositorView_jni.h" |
34 #include "third_party/skia/include/core/SkBitmap.h" | 34 #include "third_party/skia/include/core/SkBitmap.h" |
35 #include "ui/android/resources/resource_manager.h" | 35 #include "ui/android/resources/resource_manager.h" |
36 #include "ui/android/resources/ui_resource_provider.h" | 36 #include "ui/android/resources/ui_resource_provider.h" |
37 #include "ui/android/window_android.h" | 37 #include "ui/android/window_android.h" |
38 #include "ui/gfx/android/java_bitmap.h" | 38 #include "ui/gfx/android/java_bitmap.h" |
39 | 39 |
| 40 using base::android::JavaParamRef; |
| 41 |
40 namespace chrome { | 42 namespace chrome { |
41 namespace android { | 43 namespace android { |
42 | 44 |
43 jlong Init(JNIEnv* env, | 45 jlong Init(JNIEnv* env, |
44 const JavaParamRef<jobject>& obj, | 46 const JavaParamRef<jobject>& obj, |
45 jboolean low_mem_device, | 47 jboolean low_mem_device, |
46 jlong native_window_android, | 48 jlong native_window_android, |
47 const JavaParamRef<jobject>& jlayer_title_cache, | 49 const JavaParamRef<jobject>& jlayer_title_cache, |
48 const JavaParamRef<jobject>& jtab_content_manager) { | 50 const JavaParamRef<jobject>& jtab_content_manager) { |
49 CompositorView* view; | 51 CompositorView* view; |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 // through here but through BrowserChildProcessHostDisconnected() instead. | 266 // through here but through BrowserChildProcessHostDisconnected() instead. |
265 } | 267 } |
266 | 268 |
267 // Register native methods | 269 // Register native methods |
268 bool RegisterCompositorView(JNIEnv* env) { | 270 bool RegisterCompositorView(JNIEnv* env) { |
269 return RegisterNativesImpl(env); | 271 return RegisterNativesImpl(env); |
270 } | 272 } |
271 | 273 |
272 } // namespace android | 274 } // namespace android |
273 } // namespace chrome | 275 } // namespace chrome |
OLD | NEW |