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 | 8 |
9 #include "android_webview/browser/aw_browser_context.h" | 9 #include "android_webview/browser/aw_browser_context.h" |
10 #include "android_webview/browser/aw_browser_main_parts.h" | 10 #include "android_webview/browser/aw_browser_main_parts.h" |
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
770 ScopedJavaLocalRef<jobject> obj = java_ref_.get(env); | 770 ScopedJavaLocalRef<jobject> obj = java_ref_.get(env); |
771 if (!obj.is_null()) | 771 if (!obj.is_null()) |
772 Java_AwContents_postInvalidateOnAnimation(env, obj.obj()); | 772 Java_AwContents_postInvalidateOnAnimation(env, obj.obj()); |
773 } | 773 } |
774 | 774 |
775 void AwContents::UpdateParentDrawConstraints() { | 775 void AwContents::UpdateParentDrawConstraints() { |
776 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 776 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
777 browser_view_renderer_.UpdateParentDrawConstraints(); | 777 browser_view_renderer_.UpdateParentDrawConstraints(); |
778 } | 778 } |
779 | 779 |
| 780 void AwContents::DidSkipCommitFrame() { |
| 781 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 782 browser_view_renderer_.DidSkipCommitFrame(); |
| 783 } |
| 784 |
780 void AwContents::OnNewPicture() { | 785 void AwContents::OnNewPicture() { |
781 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 786 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
782 JNIEnv* env = AttachCurrentThread(); | 787 JNIEnv* env = AttachCurrentThread(); |
783 ScopedJavaLocalRef<jobject> obj = java_ref_.get(env); | 788 ScopedJavaLocalRef<jobject> obj = java_ref_.get(env); |
784 if (!obj.is_null()) { | 789 if (!obj.is_null()) { |
785 devtools_instrumentation::ScopedEmbedderCallbackTask embedder_callback( | 790 devtools_instrumentation::ScopedEmbedderCallbackTask embedder_callback( |
786 "onNewPicture"); | 791 "onNewPicture"); |
787 Java_AwContents_onNewPicture(env, obj.obj()); | 792 Java_AwContents_onNewPicture(env, obj.obj()); |
788 } | 793 } |
789 } | 794 } |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1171 } | 1176 } |
1172 | 1177 |
1173 browser_view_renderer_.TrimMemory(level, visible); | 1178 browser_view_renderer_.TrimMemory(level, visible); |
1174 } | 1179 } |
1175 | 1180 |
1176 void SetShouldDownloadFavicons(JNIEnv* env, jclass jclazz) { | 1181 void SetShouldDownloadFavicons(JNIEnv* env, jclass jclazz) { |
1177 g_should_download_favicons = true; | 1182 g_should_download_favicons = true; |
1178 } | 1183 } |
1179 | 1184 |
1180 } // namespace android_webview | 1185 } // namespace android_webview |
OLD | NEW |