| 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/tile.h" | 5 #include "cc/resources/tile.h" |
| 6 | 6 |
| 7 #include "base/stringprintf.h" | 7 #include "base/stringprintf.h" |
| 8 #include "cc/tile_manager.h" | 8 #include "cc/resources/tile_manager.h" |
| 9 #include "third_party/khronos/GLES2/gl2.h" | 9 #include "third_party/khronos/GLES2/gl2.h" |
| 10 | 10 |
| 11 namespace cc { | 11 namespace cc { |
| 12 | 12 |
| 13 Tile::Tile(TileManager* tile_manager, | 13 Tile::Tile(TileManager* tile_manager, |
| 14 PicturePileImpl* picture_pile, | 14 PicturePileImpl* picture_pile, |
| 15 gfx::Size tile_size, | 15 gfx::Size tile_size, |
| 16 GLenum format, | 16 GLenum format, |
| 17 gfx::Rect content_rect, | 17 gfx::Rect content_rect, |
| 18 gfx::Rect opaque_rect, | 18 gfx::Rect opaque_rect, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 44 res->Set("managed_state", managed_state_.AsValue().release()); | 44 res->Set("managed_state", managed_state_.AsValue().release()); |
| 45 return res.PassAs<base::Value>(); | 45 return res.PassAs<base::Value>(); |
| 46 } | 46 } |
| 47 | 47 |
| 48 void Tile::SetPriority(WhichTree tree, const TilePriority& priority) { | 48 void Tile::SetPriority(WhichTree tree, const TilePriority& priority) { |
| 49 tile_manager_->WillModifyTilePriority(this, tree, priority); | 49 tile_manager_->WillModifyTilePriority(this, tree, priority); |
| 50 priority_[tree] = priority; | 50 priority_[tree] = priority; |
| 51 } | 51 } |
| 52 | 52 |
| 53 } // namespace cc | 53 } // namespace cc |
| OLD | NEW |