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

Side by Side Diff: cc/layers/picture_layer_impl.cc

Issue 285963002: cc: Remove unused variable in PictureLayerImpl::AppendQuads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 | « no previous file | no next file » | 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/layers/picture_layer_impl.h" 5 #include "cc/layers/picture_layer_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 133
134 // We always need to push properties. 134 // We always need to push properties.
135 // See http://crbug.com/303943 135 // See http://crbug.com/303943
136 needs_push_properties_ = true; 136 needs_push_properties_ = true;
137 } 137 }
138 138
139 void PictureLayerImpl::AppendQuads(QuadSink* quad_sink, 139 void PictureLayerImpl::AppendQuads(QuadSink* quad_sink,
140 AppendQuadsData* append_quads_data) { 140 AppendQuadsData* append_quads_data) {
141 DCHECK(!needs_post_commit_initialization_); 141 DCHECK(!needs_post_commit_initialization_);
142 gfx::Rect rect(visible_content_rect()); 142 gfx::Rect rect(visible_content_rect());
143 gfx::Rect content_rect(content_bounds());
144 143
145 SharedQuadState* shared_quad_state = quad_sink->CreateSharedQuadState(); 144 SharedQuadState* shared_quad_state = quad_sink->CreateSharedQuadState();
146 PopulateSharedQuadState(shared_quad_state); 145 PopulateSharedQuadState(shared_quad_state);
147 146
148 if (current_draw_mode_ == DRAW_MODE_RESOURCELESS_SOFTWARE) { 147 if (current_draw_mode_ == DRAW_MODE_RESOURCELESS_SOFTWARE) {
149 AppendDebugBorderQuad( 148 AppendDebugBorderQuad(
150 quad_sink, 149 quad_sink,
151 shared_quad_state, 150 shared_quad_state,
152 append_quads_data, 151 append_quads_data,
153 DebugColors::DirectPictureBorderColor(), 152 DebugColors::DirectPictureBorderColor(),
(...skipping 1403 matching lines...) Expand 10 before | Expand all | Expand 10 after
1557 return iterator_index_ < iterators_.size(); 1556 return iterator_index_ < iterators_.size();
1558 } 1557 }
1559 1558
1560 bool PictureLayerImpl::LayerEvictionTileIterator::IsCorrectType( 1559 bool PictureLayerImpl::LayerEvictionTileIterator::IsCorrectType(
1561 PictureLayerTiling::TilingEvictionTileIterator* it) const { 1560 PictureLayerTiling::TilingEvictionTileIterator* it) const {
1562 return it->get_type() == iteration_stage_ && 1561 return it->get_type() == iteration_stage_ &&
1563 (**it)->required_for_activation() == required_for_activation_; 1562 (**it)->required_for_activation() == required_for_activation_;
1564 } 1563 }
1565 1564
1566 } // namespace cc 1565 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698