| Index: cc/layers/heads_up_display_layer_impl.cc
|
| diff --git a/cc/layers/heads_up_display_layer_impl.cc b/cc/layers/heads_up_display_layer_impl.cc
|
| index c6ed5fc67c670a1c25cb528d7fd8fdc866d67e66..888913c95c641910ce3863b8a3aa4c3dd5a8fcfa 100644
|
| --- a/cc/layers/heads_up_display_layer_impl.cc
|
| +++ b/cc/layers/heads_up_display_layer_impl.cc
|
| @@ -170,13 +170,14 @@ void HeadsUpDisplayLayerImpl::UpdateHudTexture(
|
| }
|
|
|
| TRACE_EVENT0("cc", "UploadHudTexture");
|
| - const SkBitmap* bitmap = &hud_canvas_->getDevice()->accessBitmap(false);
|
| - SkAutoLockPixels locker(*bitmap);
|
| -
|
| + SkImageInfo info;
|
| + size_t row_bytes = 0;
|
| + const void* pixels = hud_canvas_->peekPixels(&info, &row_bytes);
|
| + DCHECK(pixels);
|
| gfx::Rect content_rect(content_bounds());
|
| - DCHECK(bitmap->config() == SkBitmap::kARGB_8888_Config);
|
| + DCHECK(info.colorType() == kPMColor_SkColorType);
|
| resource_provider->SetPixels(hud_resource_->id(),
|
| - static_cast<const uint8_t*>(bitmap->getPixels()),
|
| + static_cast<const uint8_t*>(pixels),
|
| content_rect,
|
| content_rect,
|
| gfx::Vector2d());
|
|
|