OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/tab_content_manager.h" | 5 #include "chrome/browser/android/compositor/tab_content_manager.h" |
6 | 6 |
7 #include <android/bitmap.h> | 7 #include <android/bitmap.h> |
8 | 8 |
9 #include "base/android/jni_android.h" | 9 #include "base/android/jni_android.h" |
10 #include "base/android/jni_string.h" | 10 #include "base/android/jni_string.h" |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 | 363 |
364 bool RegisterTabContentManager(JNIEnv* env) { | 364 bool RegisterTabContentManager(JNIEnv* env) { |
365 return RegisterNativesImpl(env); | 365 return RegisterNativesImpl(env); |
366 } | 366 } |
367 | 367 |
368 // ---------------------------------------------------------------------------- | 368 // ---------------------------------------------------------------------------- |
369 // Native JNI methods | 369 // Native JNI methods |
370 // ---------------------------------------------------------------------------- | 370 // ---------------------------------------------------------------------------- |
371 | 371 |
372 jlong Init(JNIEnv* env, | 372 jlong Init(JNIEnv* env, |
373 jobject obj, | 373 const JavaParamRef<jobject>& obj, |
374 jint default_cache_size, | 374 jint default_cache_size, |
375 jint approximation_cache_size, | 375 jint approximation_cache_size, |
376 jint compression_queue_max_size, | 376 jint compression_queue_max_size, |
377 jint write_queue_max_size, | 377 jint write_queue_max_size, |
378 jboolean use_approximation_thumbnail) { | 378 jboolean use_approximation_thumbnail) { |
379 TabContentManager* manager = new TabContentManager( | 379 TabContentManager* manager = new TabContentManager( |
380 env, obj, default_cache_size, approximation_cache_size, | 380 env, obj, default_cache_size, approximation_cache_size, |
381 compression_queue_max_size, write_queue_max_size, | 381 compression_queue_max_size, write_queue_max_size, |
382 use_approximation_thumbnail); | 382 use_approximation_thumbnail); |
383 return reinterpret_cast<intptr_t>(manager); | 383 return reinterpret_cast<intptr_t>(manager); |
384 } | 384 } |
385 | 385 |
386 } // namespace android | 386 } // namespace android |
387 } // namespace chrome | 387 } // namespace chrome |
OLD | NEW |