| Index: mojo/services/native_viewport/native_viewport_service.cc
|
| diff --git a/mojo/services/native_viewport/native_viewport_service.cc b/mojo/services/native_viewport/native_viewport_service.cc
|
| index 3d42382c4e5c7df617d096c2fd800dbbecf9df4c..1067e748d195bbd676934e638881bc9aaeeba8ed 100644
|
| --- a/mojo/services/native_viewport/native_viewport_service.cc
|
| +++ b/mojo/services/native_viewport/native_viewport_service.cc
|
| @@ -79,7 +79,7 @@ class NativeViewportService::NativeViewportImpl
|
| if (widget_ == gfx::kNullAcceleratedWidget || !gles2_)
|
| return;
|
| gfx::Size size = native_viewport_->GetSize();
|
| - if (size.width() == 0 || size.height() == 0)
|
| + if (size.IsEmpty())
|
| return;
|
| gles2_->CreateContext(widget_, size);
|
| created_context_ = true;
|
| @@ -146,6 +146,7 @@ class NativeViewportService::NativeViewportImpl
|
|
|
| virtual void OnBoundsChanged(const gfx::Rect& bounds) MOJO_OVERRIDE {
|
| CreateGLES2ContextIfNeeded();
|
| + AllocationScope allocation;
|
| client_->OnBoundsChanged(bounds);
|
| }
|
|
|
|
|