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

Unified Diff: android_webview/native/aw_contents.cc

Issue 271163002: aw: Fix lost invalidate while playing video (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: thread Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/native/aw_contents.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_contents.cc
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc
index 2cfdcd580b0d7697a3de6a1a5b6ee7a4f17a4702..09985c9dc35ce5c27b855790aeda5fa7995783f3 100644
--- a/android_webview/native/aw_contents.cc
+++ b/android_webview/native/aw_contents.cc
@@ -151,9 +151,7 @@ AwContents* AwContents::FromID(int render_process_id, int render_view_id) {
}
AwContents::AwContents(scoped_ptr<WebContents> web_contents)
- : weak_factory_on_ui_thread_(this),
- ui_thread_weak_ptr_(weak_factory_on_ui_thread_.GetWeakPtr()),
- web_contents_(web_contents.Pass()),
+ : web_contents_(web_contents.Pass()),
shared_renderer_state_(
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI),
this),
@@ -349,17 +347,10 @@ void AwContents::DrawGL(AwDrawGLInfo* draw_info) {
state_restore.framebuffer_binding_ext(),
draw_info,
&result)) {
- content::BrowserThread::PostTask(
- content::BrowserThread::UI,
- FROM_HERE,
- base::Bind(&AwContents::DidDrawGL, ui_thread_weak_ptr_, result));
+ browser_view_renderer_.DidDrawGL(result);
}
}
-void AwContents::DidDrawGL(const DrawGLResult& result) {
- browser_view_renderer_.DidDrawGL(result);
-}
-
namespace {
void DocumentHasImagesCallback(const ScopedJavaGlobalRef<jobject>& message,
bool has_images) {
« 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