| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/aw_contents.h" | 5 #include "android_webview/native/aw_contents.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "android_webview/browser/aw_browser_context.h" | 10 #include "android_webview/browser/aw_browser_context.h" |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 | 303 |
| 304 return web_contents_->GetJavaWebContents(); | 304 return web_contents_->GetJavaWebContents(); |
| 305 } | 305 } |
| 306 | 306 |
| 307 void AwContents::SetAwGLFunctor(AwGLFunctor* functor) { | 307 void AwContents::SetAwGLFunctor(AwGLFunctor* functor) { |
| 308 if (functor == functor_) { | 308 if (functor == functor_) { |
| 309 return; | 309 return; |
| 310 } | 310 } |
| 311 functor_ = functor; | 311 functor_ = functor; |
| 312 if (functor_) { | 312 if (functor_) { |
| 313 browser_view_renderer_.SetCompositorFrameConsumer( | 313 browser_view_renderer_.SetCurrentCompositorFrameConsumer( |
| 314 functor_->GetCompositorFrameConsumer()); | 314 functor_->GetCompositorFrameConsumer()); |
| 315 } else { | 315 } else { |
| 316 browser_view_renderer_.SetCompositorFrameConsumer(nullptr); | 316 browser_view_renderer_.SetCurrentCompositorFrameConsumer(nullptr); |
| 317 } | 317 } |
| 318 } | 318 } |
| 319 | 319 |
| 320 void AwContents::SetAwGLFunctor(JNIEnv* env, | 320 void AwContents::SetAwGLFunctor(JNIEnv* env, |
| 321 const base::android::JavaParamRef<jobject>& obj, | 321 const base::android::JavaParamRef<jobject>& obj, |
| 322 jlong gl_functor) { | 322 jlong gl_functor) { |
| 323 SetAwGLFunctor(reinterpret_cast<AwGLFunctor*>(gl_functor)); | 323 SetAwGLFunctor(reinterpret_cast<AwGLFunctor*>(gl_functor)); |
| 324 } | 324 } |
| 325 | 325 |
| 326 void AwContents::Destroy(JNIEnv* env, const JavaParamRef<jobject>& obj) { | 326 void AwContents::Destroy(JNIEnv* env, const JavaParamRef<jobject>& obj) { |
| (...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1279 const JavaParamRef<jobject>& obj) { | 1279 const JavaParamRef<jobject>& obj) { |
| 1280 web_contents_->ResumeLoadingCreatedWebContents(); | 1280 web_contents_->ResumeLoadingCreatedWebContents(); |
| 1281 } | 1281 } |
| 1282 | 1282 |
| 1283 void SetShouldDownloadFavicons(JNIEnv* env, | 1283 void SetShouldDownloadFavicons(JNIEnv* env, |
| 1284 const JavaParamRef<jclass>& jclazz) { | 1284 const JavaParamRef<jclass>& jclazz) { |
| 1285 g_should_download_favicons = true; | 1285 g_should_download_favicons = true; |
| 1286 } | 1286 } |
| 1287 | 1287 |
| 1288 } // namespace android_webview | 1288 } // namespace android_webview |
| OLD | NEW |