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

Side by Side Diff: cc/output/direct_renderer.cc

Issue 416273005: cc/output: cleanup: Remove unnecessary #includes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « cc/output/delegating_renderer.cc ('k') | cc/output/filter_operation.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/containers/hash_tables.h"
11 #include "base/containers/scoped_ptr_hash_map.h" 11 #include "base/containers/scoped_ptr_hash_map.h"
12 #include "base/debug/trace_event.h" 12 #include "base/debug/trace_event.h"
13 #include "base/metrics/histogram.h" 13 #include "base/metrics/histogram.h"
14 #include "cc/base/math_util.h" 14 #include "cc/base/math_util.h"
15 #include "cc/output/copy_output_request.h" 15 #include "cc/output/copy_output_request.h"
16 #include "cc/quads/draw_quad.h" 16 #include "cc/quads/draw_quad.h"
17 #include "cc/resources/raster_worker_pool.h" 17 #include "ui/gfx/geometry/rect_conversions.h"
18 #include "ui/gfx/rect_conversions.h"
19 #include "ui/gfx/transform.h" 18 #include "ui/gfx/transform.h"
20 19
21 static gfx::Transform OrthoProjectionMatrix(float left, 20 static gfx::Transform OrthoProjectionMatrix(float left,
22 float right, 21 float right,
23 float bottom, 22 float bottom,
24 float top) { 23 float top) {
25 // Use the standard formula to map the clipping frustum to the cube from 24 // Use the standard formula to map the clipping frustum to the cube from
26 // [-1, -1, -1] to [1, 1, 1]. 25 // [-1, -1, -1] to [1, 1, 1].
27 float delta_x = right - left; 26 float delta_x = right - left;
28 float delta_y = top - bottom; 27 float delta_y = top - bottom;
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 ScopedResource* texture = render_pass_textures_.get(id); 419 ScopedResource* texture = render_pass_textures_.get(id);
421 return texture && texture->id(); 420 return texture && texture->id();
422 } 421 }
423 422
424 // static 423 // static
425 gfx::Size DirectRenderer::RenderPassTextureSize(const RenderPass* render_pass) { 424 gfx::Size DirectRenderer::RenderPassTextureSize(const RenderPass* render_pass) {
426 return render_pass->output_rect.size(); 425 return render_pass->output_rect.size();
427 } 426 }
428 427
429 } // namespace cc 428 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/delegating_renderer.cc ('k') | cc/output/filter_operation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698