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

Side by Side Diff: gpu/tools/compositor_model_bench/forward_render_model.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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // A render model simulator for the original model used in Chromium. 5 // A render model simulator for the original model used in Chromium.
6 6
7 #ifndef GPU_TOOLS_COMPOSITOR_MODEL_BENCH_FORWARD_RENDER_MODEL_H_ 7 #ifndef GPU_TOOLS_COMPOSITOR_MODEL_BENCH_FORWARD_RENDER_MODEL_H_
8 #define GPU_TOOLS_COMPOSITOR_MODEL_BENCH_FORWARD_RENDER_MODEL_H_ 8 #define GPU_TOOLS_COMPOSITOR_MODEL_BENCH_FORWARD_RENDER_MODEL_H_
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "gpu/tools/compositor_model_bench/render_model_utils.h" 13 #include "gpu/tools/compositor_model_bench/render_model_utils.h"
14 #include "gpu/tools/compositor_model_bench/render_models.h" 14 #include "gpu/tools/compositor_model_bench/render_models.h"
15 15
16 class ForwardRenderNodeVisitor; 16 class ForwardRenderNodeVisitor;
17 17
18 class ForwardRenderSimulator : public RenderModelSimulator { 18 class ForwardRenderSimulator : public RenderModelSimulator {
19 public: 19 public:
20 explicit ForwardRenderSimulator(RenderNode* root, 20 ForwardRenderSimulator(std::unique_ptr<RenderNode> root,
21 int window_width, 21 int window_width,
22 int window_height); 22 int window_height);
23 ~ForwardRenderSimulator() override; 23 ~ForwardRenderSimulator() override;
24 void Update() override; 24 void Update() override;
25 void Resize(int width, int height) override; 25 void Resize(int width, int height) override;
26 26
27 private: 27 private:
28 std::unique_ptr<ForwardRenderNodeVisitor> visitor_; 28 std::unique_ptr<ForwardRenderNodeVisitor> visitor_;
29 std::unique_ptr<TextureGenerator> textures_; 29 std::unique_ptr<TextureGenerator> textures_;
30 30
31 DISALLOW_IMPLICIT_CONSTRUCTORS(ForwardRenderSimulator); 31 DISALLOW_IMPLICIT_CONSTRUCTORS(ForwardRenderSimulator);
32 }; 32 };
33 33
34 #endif // GPU_TOOLS_COMPOSITOR_MODEL_BENCH_FORWARD_RENDER_MODEL_H_ 34 #endif // GPU_TOOLS_COMPOSITOR_MODEL_BENCH_FORWARD_RENDER_MODEL_H_
35 35
OLDNEW
« no previous file with comments | « gpu/tools/compositor_model_bench/compositor_model_bench.cc ('k') | gpu/tools/compositor_model_bench/forward_render_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698