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

Unified Diff: cc/output/direct_renderer.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 | « cc/layers/texture_layer_impl.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/direct_renderer.cc
diff --git a/cc/output/direct_renderer.cc b/cc/output/direct_renderer.cc
index 3b88d774b9483690f05f38855270d037dd31c818..d74f11dc574b62ccd6977e5b142fe1133393d816 100644
--- a/cc/output/direct_renderer.cc
+++ b/cc/output/direct_renderer.cc
@@ -203,7 +203,7 @@ void DirectRenderer::DecideRenderPassAllocationsForFrame(
for (auto& pass : render_passes_in_draw_order) {
auto& resource = render_pass_textures_[pass->id];
if (!resource)
- resource = ScopedResource::Create(resource_provider_);
+ resource = base::MakeUnique<ScopedResource>(resource_provider_);
}
}
« no previous file with comments | « cc/layers/texture_layer_impl.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698