| Index: components/bitmap_uploader/bitmap_uploader.cc
|
| diff --git a/components/bitmap_uploader/bitmap_uploader.cc b/components/bitmap_uploader/bitmap_uploader.cc
|
| index 869ae84719e4563f419497791e28838b3dda8447..8f574805eb4c6b88f0ed44fdb6d771c5f286f0b2 100644
|
| --- a/components/bitmap_uploader/bitmap_uploader.cc
|
| +++ b/components/bitmap_uploader/bitmap_uploader.cc
|
| @@ -82,6 +82,11 @@ void BitmapUploader::SetBitmap(int width,
|
| }
|
|
|
| void BitmapUploader::Upload() {
|
| + // If the |gpu_service_| has errored than we won't get far. Do nothing,
|
| + // assuming we are in shutdown.
|
| + if (gpu_service_.encountered_error())
|
| + return;
|
| +
|
| const gfx::Rect bounds(window_->bounds());
|
| mus::mojom::PassPtr pass = mojo::CreateDefaultPass(1, bounds);
|
| mus::mojom::CompositorFramePtr frame = mus::mojom::CompositorFrame::New();
|
|
|