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

Unified Diff: android_webview/browser/test/fake_window.cc

Issue 846323002: aw: Fix clearView implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/browser/test/fake_window.h ('k') | android_webview/browser/test/rendering_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/test/fake_window.cc
diff --git a/android_webview/browser/test/fake_window.cc b/android_webview/browser/test/fake_window.cc
index c709f62e85f8225fd7533f616fc49dad9ed8a0a6..8b13213b1bfed86b85faae104f5f5c9ba543d237 100644
--- a/android_webview/browser/test/fake_window.cc
+++ b/android_webview/browser/test/fake_window.cc
@@ -52,6 +52,8 @@ FakeWindow::FakeWindow(BrowserViewRenderer* view,
CheckCurrentlyOnUIThread();
DCHECK(view_);
view_->OnAttachedToWindow(location_.width(), location_.height());
+ view_->SetWindowVisibility(true);
+ view_->SetViewVisibility(true);
hush (inactive) 2015/01/14 02:06:12 what does it do?
boliu 2015/01/14 02:08:20 WindowVisible is used when scheduling fallback tic
}
FakeWindow::~FakeWindow() {
@@ -117,7 +119,9 @@ void FakeWindow::OnDrawHardware() {
DCHECK(on_draw_hardware_pending_);
on_draw_hardware_pending_ = false;
+ hooks_->WillOnDraw();
bool success = view_->OnDrawHardware();
+ hooks_->DidOnDraw(success);
if (success) {
CreateRenderThreadIfNeeded();
« no previous file with comments | « android_webview/browser/test/fake_window.h ('k') | android_webview/browser/test/rendering_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698