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

Unified Diff: gpu/tools/compositor_model_bench/render_models.h

Issue 2145543002: Use base::FooValue::From() to simplify gpu code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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
Index: gpu/tools/compositor_model_bench/render_models.h
diff --git a/gpu/tools/compositor_model_bench/render_models.h b/gpu/tools/compositor_model_bench/render_models.h
index cc17dcb3845e6a07f9e8fb0f1b1825f0976247c7..c68d5c69c3cdb7dc0aa7918f85a310b8bc5118ca 100644
--- a/gpu/tools/compositor_model_bench/render_models.h
+++ b/gpu/tools/compositor_model_bench/render_models.h
@@ -26,17 +26,19 @@ class RenderModelSimulator {
virtual void Resize(int width, int height) = 0;
protected:
- explicit RenderModelSimulator(RenderNode* root);
+ explicit RenderModelSimulator(std::unique_ptr<RenderNode> root);
+
std::unique_ptr<RenderNode> root_;
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(RenderModelSimulator);
};
-RenderModelSimulator* ConstructSimulationModel(RenderModel model,
- RenderNode* render_tree_root,
- int window_width,
- int window_height);
+std::unique_ptr<RenderModelSimulator> ConstructSimulationModel(
+ RenderModel model,
+ std::unique_ptr<RenderNode> render_tree_root,
+ int window_width,
+ int window_height);
#endif // GPU_TOOLS_COMPOSITOR_MODEL_BENCH_RENDER_MODELS_H_
« no previous file with comments | « gpu/tools/compositor_model_bench/forward_render_model.cc ('k') | gpu/tools/compositor_model_bench/render_models.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698