Index: ui/platform_window/stub/stub_window.cc |
diff --git a/ui/platform_window/stub/stub_window.cc b/ui/platform_window/stub/stub_window.cc |
index da7fd6227b78c7e3430fa07dfcd07d093e99c047..6412a62c662efe881a1e3229a9024c07586ab16f 100644 |
--- a/ui/platform_window/stub/stub_window.cc |
+++ b/ui/platform_window/stub/stub_window.cc |
@@ -8,8 +8,11 @@ |
namespace ui { |
-StubWindow::StubWindow(PlatformWindowDelegate* delegate) : delegate_(delegate) { |
- if (delegate_) |
+StubWindow::StubWindow(PlatformWindowDelegate* delegate, |
+ bool use_default_accelerated_widget) |
+ : delegate_(delegate) { |
+ DCHECK(delegate); |
+ if (use_default_accelerated_widget) |
delegate_->OnAcceleratedWidgetAvailable(gfx::kNullAcceleratedWidget, 1.f); |
} |
@@ -23,16 +26,14 @@ void StubWindow::Hide() { |
} |
void StubWindow::Close() { |
- if (delegate_) |
- delegate_->OnClosed(); |
+ delegate_->OnClosed(); |
} |
void StubWindow::SetBounds(const gfx::Rect& bounds) { |
if (bounds_ == bounds) |
return; |
bounds_ = bounds; |
- if (delegate_) |
- delegate_->OnBoundsChanged(bounds); |
+ delegate_->OnBoundsChanged(bounds); |
} |
gfx::Rect StubWindow::GetBounds() { |