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 #include <stddef.h> |
8 | 9 |
9 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
10 #include "base/android/jni_string.h" | 11 #include "base/android/jni_string.h" |
11 #include "base/android/scoped_java_ref.h" | 12 #include "base/android/scoped_java_ref.h" |
12 #include "base/bind.h" | 13 #include "base/bind.h" |
13 #include "base/bind_helpers.h" | 14 #include "base/bind_helpers.h" |
| 15 #include "base/macros.h" |
14 #include "cc/layers/layer.h" | 16 #include "cc/layers/layer.h" |
15 #include "chrome/browser/android/compositor/layer/thumbnail_layer.h" | 17 #include "chrome/browser/android/compositor/layer/thumbnail_layer.h" |
16 #include "chrome/browser/android/tab_android.h" | 18 #include "chrome/browser/android/tab_android.h" |
17 #include "chrome/browser/android/thumbnail/thumbnail.h" | 19 #include "chrome/browser/android/thumbnail/thumbnail.h" |
18 #include "content/public/browser/android/content_view_core.h" | 20 #include "content/public/browser/android/content_view_core.h" |
19 #include "content/public/browser/readback_types.h" | 21 #include "content/public/browser/readback_types.h" |
20 #include "content/public/browser/render_view_host.h" | 22 #include "content/public/browser/render_view_host.h" |
21 #include "content/public/browser/render_widget_host.h" | 23 #include "content/public/browser/render_widget_host.h" |
22 #include "content/public/browser/web_contents.h" | 24 #include "content/public/browser/web_contents.h" |
23 #include "jni/TabContentManager_jni.h" | 25 #include "jni/TabContentManager_jni.h" |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 jboolean use_approximation_thumbnail) { | 386 jboolean use_approximation_thumbnail) { |
385 TabContentManager* manager = new TabContentManager( | 387 TabContentManager* manager = new TabContentManager( |
386 env, obj, default_cache_size, approximation_cache_size, | 388 env, obj, default_cache_size, approximation_cache_size, |
387 compression_queue_max_size, write_queue_max_size, | 389 compression_queue_max_size, write_queue_max_size, |
388 use_approximation_thumbnail); | 390 use_approximation_thumbnail); |
389 return reinterpret_cast<intptr_t>(manager); | 391 return reinterpret_cast<intptr_t>(manager); |
390 } | 392 } |
391 | 393 |
392 } // namespace android | 394 } // namespace android |
393 } // namespace chrome | 395 } // namespace chrome |
OLD | NEW |