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

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

Issue 1175113010: cc: Rename visible_content_rect and content stuff on quads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename-visible-content-rect: moreandroid Created 5 years, 6 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/layers/video_layer_impl_unittest.cc ('k') | cc/output/direct_renderer.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/bsp_walk_action.h" 5 #include "cc/output/bsp_walk_action.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/output/direct_renderer.h" 10 #include "cc/output/direct_renderer.h"
(...skipping 10 matching lines...) Expand all
21 : renderer_(renderer), 21 : renderer_(renderer),
22 frame_(frame), 22 frame_(frame),
23 render_pass_scissor_(render_pass_scissor), 23 render_pass_scissor_(render_pass_scissor),
24 using_scissor_as_optimization_(using_scissor_as_optimization) { 24 using_scissor_as_optimization_(using_scissor_as_optimization) {
25 } 25 }
26 26
27 void BspWalkActionDrawPolygon::operator()(DrawPolygon* item) { 27 void BspWalkActionDrawPolygon::operator()(DrawPolygon* item) {
28 gfx::Transform inverse_transform; 28 gfx::Transform inverse_transform;
29 bool invertible = 29 bool invertible =
30 item->original_ref() 30 item->original_ref()
31 ->shared_quad_state->content_to_target_transform.GetInverse( 31 ->shared_quad_state->quad_to_target_transform.GetInverse(
32 &inverse_transform); 32 &inverse_transform);
33 DCHECK(invertible); 33 DCHECK(invertible);
34 item->TransformToLayerSpace(inverse_transform); 34 item->TransformToLayerSpace(inverse_transform);
35 renderer_->DoDrawPolygon(*item, frame_, render_pass_scissor_, 35 renderer_->DoDrawPolygon(*item, frame_, render_pass_scissor_,
36 using_scissor_as_optimization_); 36 using_scissor_as_optimization_);
37 } 37 }
38 38
39 BspWalkActionToVector::BspWalkActionToVector(std::vector<DrawPolygon*>* in_list) 39 BspWalkActionToVector::BspWalkActionToVector(std::vector<DrawPolygon*>* in_list)
40 : list_(in_list) { 40 : list_(in_list) {
41 } 41 }
42 42
43 void BspWalkActionToVector::operator()(DrawPolygon* item) { 43 void BspWalkActionToVector::operator()(DrawPolygon* item) {
44 list_->push_back(item); 44 list_->push_back(item);
45 } 45 }
46 46
47 } // namespace cc 47 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/video_layer_impl_unittest.cc ('k') | cc/output/direct_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698