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

Unified Diff: cc/raster/gpu_raster_buffer_provider.cc

Issue 2672553002: Use uniform initialization in raster buffer providers (Closed)
Patch Set: Created 3 years, 11 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 | cc/raster/one_copy_raster_buffer_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/raster/gpu_raster_buffer_provider.cc
diff --git a/cc/raster/gpu_raster_buffer_provider.cc b/cc/raster/gpu_raster_buffer_provider.cc
index d87492844d4e7812079143f3cfbcab8c4f46a602..d42f9b67728ed0750939d224f4a05d1408cead6a 100644
--- a/cc/raster/gpu_raster_buffer_provider.cc
+++ b/cc/raster/gpu_raster_buffer_provider.cc
@@ -192,10 +192,8 @@ bool GpuRasterBufferProvider::IsResourceReadyToDraw(
if (!async_worker_context_enabled_)
return true;
- ResourceProvider::ResourceIdArray resources;
- resources.push_back(resource_id);
gpu::SyncToken sync_token =
- resource_provider_->GetSyncTokenForResources(resources);
+ resource_provider_->GetSyncTokenForResources({resource_id});
if (!sync_token.HasData())
return true;
« no previous file with comments | « no previous file | cc/raster/one_copy_raster_buffer_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698