OLD | NEW |
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 #include "gpu/tools/compositor_model_bench/forward_render_model.h" | 5 #include "gpu/tools/compositor_model_bench/forward_render_model.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <cstdlib> | 9 #include <cstdlib> |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "gpu/tools/compositor_model_bench/render_model_utils.h" | 12 #include "gpu/tools/compositor_model_bench/render_model_utils.h" |
11 | 13 |
12 using std::vector; | 14 using std::vector; |
13 | 15 |
14 class ForwardRenderNodeVisitor : public RenderNodeVisitor { | 16 class ForwardRenderNodeVisitor : public RenderNodeVisitor { |
15 public: | 17 public: |
16 ForwardRenderNodeVisitor() {} | 18 ForwardRenderNodeVisitor() {} |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 glClear(GL_COLOR_BUFFER_BIT); | 61 glClear(GL_COLOR_BUFFER_BIT); |
60 glColorMask(true, true, true, false); | 62 glColorMask(true, true, true, false); |
61 BeginFrame(); | 63 BeginFrame(); |
62 root_->Accept(visitor_.get()); | 64 root_->Accept(visitor_.get()); |
63 } | 65 } |
64 | 66 |
65 void ForwardRenderSimulator::Resize(int width, int height) { | 67 void ForwardRenderSimulator::Resize(int width, int height) { |
66 glViewport(0, 0, width, height); | 68 glViewport(0, 0, width, height); |
67 } | 69 } |
68 | 70 |
OLD | NEW |