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

Side by Side Diff: trunk/src/cc/trees/quad_culler.cc

Issue 13334005: Revert 191400 "cc: Add ‘chromium_code’: 1 to cc.gyp and cc_t..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
Property Changes:
Added: svn:mergeinfo
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/trees/quad_culler.h" 5 #include "cc/trees/quad_culler.h"
6 6
7 #include "cc/debug/debug_colors.h" 7 #include "cc/debug/debug_colors.h"
8 #include "cc/debug/overdraw_metrics.h" 8 #include "cc/debug/overdraw_metrics.h"
9 #include "cc/layers/append_quads_data.h" 9 #include "cc/layers/append_quads_data.h"
10 #include "cc/layers/layer_impl.h" 10 #include "cc/layers/layer_impl.h"
11 #include "cc/quads/debug_border_draw_quad.h" 11 #include "cc/quads/debug_border_draw_quad.h"
12 #include "cc/quads/render_pass.h" 12 #include "cc/quads/render_pass.h"
13 #include "cc/trees/occlusion_tracker.h" 13 #include "cc/trees/occlusion_tracker.h"
14 #include "third_party/skia/include/core/SkColor.h" 14 #include "third_party/skia/include/core/SkColor.h"
15 #include "ui/gfx/transform.h" 15 #include "ui/gfx/transform.h"
16 16
17 namespace cc { 17 namespace cc {
18 18
19 QuadCuller::QuadCuller(QuadList* quad_list, 19 QuadCuller::QuadCuller(QuadList* quad_list,
20 SharedQuadStateList* shared_quad_state_list, 20 SharedQuadStateList* shared_quad_state_list,
21 const LayerImpl* layer, 21 const LayerImpl* layer,
22 const OcclusionTrackerImpl& occlusion_tracker, 22 const OcclusionTrackerImpl& occlusion_tracker,
23 bool show_culling_with_debug_border_quads, 23 bool show_culling_with_debug_border_quads,
24 bool for_surface) 24 bool for_surface)
25 : quad_list_(quad_list), 25 : quad_list_(quad_list),
26 shared_quad_state_list_(shared_quad_state_list), 26 shared_quad_state_list_(shared_quad_state_list),
27 current_shared_quad_state_(NULL),
27 layer_(layer), 28 layer_(layer),
28 occlusion_tracker_(occlusion_tracker), 29 occlusion_tracker_(occlusion_tracker),
29 current_shared_quad_state_(NULL),
30 show_culling_with_debug_border_quads_( 30 show_culling_with_debug_border_quads_(
31 show_culling_with_debug_border_quads), 31 show_culling_with_debug_border_quads),
32 for_surface_(for_surface) {} 32 for_surface_(for_surface) {}
33 33
34 SharedQuadState* QuadCuller::UseSharedQuadState( 34 SharedQuadState* QuadCuller::UseSharedQuadState(
35 scoped_ptr<SharedQuadState> shared_quad_state) { 35 scoped_ptr<SharedQuadState> shared_quad_state) {
36 // FIXME: If all quads are culled for the shared_quad_state, we can drop it 36 // FIXME: If all quads are culled for the shared_quad_state, we can drop it
37 // from the list. 37 // from the list.
38 current_shared_quad_state_ = shared_quad_state.get(); 38 current_shared_quad_state_ = shared_quad_state.get();
39 shared_quad_state_list_->push_back(shared_quad_state.Pass()); 39 shared_quad_state_list_->push_back(shared_quad_state.Pass());
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 return AppendQuadInternal(draw_quad.Pass(), 110 return AppendQuadInternal(draw_quad.Pass(),
111 culled_rect, 111 culled_rect,
112 quad_list_, 112 quad_list_,
113 occlusion_tracker_, 113 occlusion_tracker_,
114 layer_, 114 layer_,
115 show_culling_with_debug_border_quads_); 115 show_culling_with_debug_border_quads_);
116 } 116 }
117 117
118 } // namespace cc 118 } // namespace cc
OLDNEW
« no previous file with comments | « trunk/src/cc/trees/layer_tree_host_unittest_delegated.cc ('k') | trunk/src/cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698