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

Unified Diff: ash/laser/laser_pointer_view.cc

Issue 2812363002: ash: Fix crash in LaserPointerView::ReclaimResources. (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/laser/laser_pointer_view.cc
diff --git a/ash/laser/laser_pointer_view.cc b/ash/laser/laser_pointer_view.cc
index 956fbd9a7f1b4cd84d2f951aee1ed757cd976606..5f5b757a6b6fc7016966d09526bfb3c7eb51818e 100644
--- a/ash/laser/laser_pointer_view.cc
+++ b/ash/laser/laser_pointer_view.cc
@@ -438,7 +438,8 @@ void LaserPointerView::UpdateTime() {
void LaserPointerView::DidReceiveCompositorFrameAck(
const cc::ReturnedResourceArray& resources) {
- ReclaimResources(resources);
+ if (!resources.empty())
+ ReclaimResources(resources);
base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::Bind(&LaserPointerView::OnDidDrawSurface,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698