| 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/tiles/tile.h" | 5 #include "cc/tiles/tile.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 content_rect_(info.content_rect), | 25 content_rect_(info.content_rect), |
| 26 enclosing_layer_rect_(info.enclosing_layer_rect), | 26 enclosing_layer_rect_(info.enclosing_layer_rect), |
| 27 contents_scale_(info.contents_scale), | 27 contents_scale_(info.contents_scale), |
| 28 layer_id_(layer_id), | 28 layer_id_(layer_id), |
| 29 source_frame_number_(source_frame_number), | 29 source_frame_number_(source_frame_number), |
| 30 flags_(flags), | 30 flags_(flags), |
| 31 tiling_i_index_(info.tiling_i_index), | 31 tiling_i_index_(info.tiling_i_index), |
| 32 tiling_j_index_(info.tiling_j_index), | 32 tiling_j_index_(info.tiling_j_index), |
| 33 required_for_activation_(false), | 33 required_for_activation_(false), |
| 34 required_for_draw_(false), | 34 required_for_draw_(false), |
| 35 is_solid_color_analysis_performed_(false), |
| 35 id_(tile_manager->GetUniqueTileId()), | 36 id_(tile_manager->GetUniqueTileId()), |
| 36 invalidated_id_(0), | 37 invalidated_id_(0), |
| 37 scheduled_priority_(0) {} | 38 scheduled_priority_(0) {} |
| 38 | 39 |
| 39 Tile::~Tile() { | 40 Tile::~Tile() { |
| 40 TRACE_EVENT_OBJECT_DELETED_WITH_ID( | 41 TRACE_EVENT_OBJECT_DELETED_WITH_ID( |
| 41 TRACE_DISABLED_BY_DEFAULT("cc.debug"), | 42 TRACE_DISABLED_BY_DEFAULT("cc.debug"), |
| 42 "cc::Tile", this); | 43 "cc::Tile", this); |
| 43 } | 44 } |
| 44 | 45 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 72 draw_info_.resource_->size(), draw_info_.resource_->format()); | 73 draw_info_.resource_->size(), draw_info_.resource_->format()); |
| 73 } | 74 } |
| 74 return 0; | 75 return 0; |
| 75 } | 76 } |
| 76 | 77 |
| 77 void Tile::Deleter::operator()(Tile* tile) const { | 78 void Tile::Deleter::operator()(Tile* tile) const { |
| 78 tile->tile_manager_->Release(tile); | 79 tile->tile_manager_->Release(tile); |
| 79 } | 80 } |
| 80 | 81 |
| 81 } // namespace cc | 82 } // namespace cc |
| OLD | NEW |