OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "android_webview/native/java_browser_view_renderer_helper.h" | 5 #include "android_webview/browser/java_browser_view_renderer_helper.h" |
6 | 6 |
7 #include <android/bitmap.h> | 7 #include <android/bitmap.h> |
8 | 8 |
9 #include "android_webview/public/browser/draw_sw.h" | 9 #include "android_webview/public/browser/draw_sw.h" |
10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
12 #include "base/trace_event/trace_event.h" | 12 #include "base/trace_event/trace_event.h" |
13 #include "jni/JavaBrowserViewRendererHelper_jni.h" | 13 #include "jni/JavaBrowserViewRendererHelper_jni.h" |
14 #include "third_party/skia/include/core/SkBitmap.h" | 14 #include "third_party/skia/include/core/SkBitmap.h" |
15 #include "third_party/skia/include/core/SkRefCnt.h" | 15 #include "third_party/skia/include/core/SkRefCnt.h" |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 holder.reset(new AuxiliaryCanvasHolder(env, java_canvas, scroll_correction, | 163 holder.reset(new AuxiliaryCanvasHolder(env, java_canvas, scroll_correction, |
164 auxiliary_bitmap_size)); | 164 auxiliary_bitmap_size)); |
165 } | 165 } |
166 if (!holder->GetCanvas()) { | 166 if (!holder->GetCanvas()) { |
167 holder.reset(); | 167 holder.reset(); |
168 } | 168 } |
169 return holder; | 169 return holder; |
170 } | 170 } |
171 | 171 |
172 } // namespace android_webview | 172 } // namespace android_webview |
OLD | NEW |