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/native/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" |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 holder.reset(); | 162 holder.reset(); |
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 bool RegisterJavaBrowserViewRendererHelper(JNIEnv* env) { | |
173 return RegisterNativesImpl(env); | |
174 } | |
175 | |
176 } // namespace android_webview | 172 } // namespace android_webview |
OLD | NEW |