OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 "cc/output/direct_renderer.h" | 5 #include "cc/output/direct_renderer.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
| 10 #include "base/containers/hash_tables.h" |
10 #include "base/debug/trace_event.h" | 11 #include "base/debug/trace_event.h" |
11 #include "base/hash_tables.h" | |
12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
13 #include "cc/base/math_util.h" | 13 #include "cc/base/math_util.h" |
14 #include "cc/output/copy_output_request.h" | 14 #include "cc/output/copy_output_request.h" |
15 #include "cc/quads/draw_quad.h" | 15 #include "cc/quads/draw_quad.h" |
16 #include "ui/gfx/rect_conversions.h" | 16 #include "ui/gfx/rect_conversions.h" |
17 #include "ui/gfx/transform.h" | 17 #include "ui/gfx/transform.h" |
18 | 18 |
19 static gfx::Transform OrthoProjectionMatrix(float left, | 19 static gfx::Transform OrthoProjectionMatrix(float left, |
20 float right, | 20 float right, |
21 float bottom, | 21 float bottom, |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 gfx::Size DirectRenderer::RenderPassTextureSize(const RenderPass* render_pass) { | 383 gfx::Size DirectRenderer::RenderPassTextureSize(const RenderPass* render_pass) { |
384 return render_pass->output_rect.size(); | 384 return render_pass->output_rect.size(); |
385 } | 385 } |
386 | 386 |
387 // static | 387 // static |
388 GLenum DirectRenderer::RenderPassTextureFormat(const RenderPass* render_pass) { | 388 GLenum DirectRenderer::RenderPassTextureFormat(const RenderPass* render_pass) { |
389 return GL_RGBA; | 389 return GL_RGBA; |
390 } | 390 } |
391 | 391 |
392 } // namespace cc | 392 } // namespace cc |
OLD | NEW |