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 #include <stddef.h> |
9 | 9 |
10 #include <utility> | 10 #include <utility> |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "chrome/browser/android/thumbnail/thumbnail.h" | 22 #include "chrome/browser/android/thumbnail/thumbnail.h" |
23 #include "content/public/browser/android/content_view_core.h" | 23 #include "content/public/browser/android/content_view_core.h" |
24 #include "content/public/browser/readback_types.h" | 24 #include "content/public/browser/readback_types.h" |
25 #include "content/public/browser/render_view_host.h" | 25 #include "content/public/browser/render_view_host.h" |
26 #include "content/public/browser/render_widget_host.h" | 26 #include "content/public/browser/render_widget_host.h" |
27 #include "content/public/browser/render_widget_host_view.h" | 27 #include "content/public/browser/render_widget_host_view.h" |
28 #include "content/public/browser/web_contents.h" | 28 #include "content/public/browser/web_contents.h" |
29 #include "jni/TabContentManager_jni.h" | 29 #include "jni/TabContentManager_jni.h" |
30 #include "ui/android/resources/ui_resource_provider.h" | 30 #include "ui/android/resources/ui_resource_provider.h" |
31 #include "ui/gfx/android/java_bitmap.h" | 31 #include "ui/gfx/android/java_bitmap.h" |
32 #include "ui/gfx/display.h" | |
33 #include "ui/gfx/geometry/dip_util.h" | 32 #include "ui/gfx/geometry/dip_util.h" |
34 #include "ui/gfx/geometry/rect.h" | 33 #include "ui/gfx/geometry/rect.h" |
35 #include "ui/gfx/screen.h" | |
36 #include "url/gurl.h" | 34 #include "url/gurl.h" |
37 | 35 |
38 namespace { | 36 namespace { |
39 | 37 |
40 const size_t kMaxReadbacks = 1; | 38 const size_t kMaxReadbacks = 1; |
41 typedef base::Callback<void(float, const SkBitmap&)> TabReadbackCallback; | 39 typedef base::Callback<void(float, const SkBitmap&)> TabReadbackCallback; |
42 | 40 |
43 } // namespace | 41 } // namespace |
44 | 42 |
45 namespace chrome { | 43 namespace chrome { |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 jboolean use_approximation_thumbnail) { | 385 jboolean use_approximation_thumbnail) { |
388 TabContentManager* manager = new TabContentManager( | 386 TabContentManager* manager = new TabContentManager( |
389 env, obj, default_cache_size, approximation_cache_size, | 387 env, obj, default_cache_size, approximation_cache_size, |
390 compression_queue_max_size, write_queue_max_size, | 388 compression_queue_max_size, write_queue_max_size, |
391 use_approximation_thumbnail); | 389 use_approximation_thumbnail); |
392 return reinterpret_cast<intptr_t>(manager); | 390 return reinterpret_cast<intptr_t>(manager); |
393 } | 391 } |
394 | 392 |
395 } // namespace android | 393 } // namespace android |
396 } // namespace chrome | 394 } // namespace chrome |
OLD | NEW |