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

Unified Diff: cc/layers/heads_up_display_layer_impl.cc

Issue 2697353003: cc: Make ScopedResource constructor public, use MakeUnique to construct (Closed)
Patch Set: construct: . Created 3 years, 10 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/layers/texture_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 681a58d3ef252acbd72a42dfda0ca07c9f191089..6aae1bd3bddca2e54ccc0114526c99d281f5443a 100644
--- a/cc/layers/heads_up_display_layer_impl.cc
+++ b/cc/layers/heads_up_display_layer_impl.cc
@@ -93,8 +93,7 @@ void HeadsUpDisplayLayerImpl::AcquireResource(
}
}
- std::unique_ptr<ScopedResource> resource =
- ScopedResource::Create(resource_provider);
+ auto resource = base::MakeUnique<ScopedResource>(resource_provider);
resource->Allocate(
internal_content_bounds_, ResourceProvider::TEXTURE_HINT_IMMUTABLE,
resource_provider->best_texture_format(), gfx::ColorSpace());
« no previous file with comments | « no previous file | cc/layers/texture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698