Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(587)

Side by Side Diff: android_webview/native/aw_contents.cc

Issue 646303004: aw: Ensure invalidation when pipeline is stalled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2171
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « android_webview/native/aw_contents.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « android_webview/native/aw_contents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698