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

Side by Side Diff: cc/resources/tile.cc

Issue 13665003: cc: Moved contents_swizzled out of TileManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed unittest compile 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
« no previous file with comments | « cc/resources/tile.h ('k') | cc/resources/tile_manager.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 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/resources/tile.h" 5 #include "cc/resources/tile.h"
6 6
7 #include "base/stringprintf.h" 7 #include "base/stringprintf.h"
8 #include "cc/resources/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,
17 gfx::Rect content_rect, 16 gfx::Rect content_rect,
18 gfx::Rect opaque_rect, 17 gfx::Rect opaque_rect,
19 float contents_scale, 18 float contents_scale,
20 int layer_id) 19 int layer_id)
21 : tile_manager_(tile_manager), 20 : tile_manager_(tile_manager),
22 tile_size_(tile_size), 21 tile_size_(tile_size),
23 format_(format),
24 content_rect_(content_rect), 22 content_rect_(content_rect),
25 contents_scale_(contents_scale), 23 contents_scale_(contents_scale),
26 opaque_rect_(opaque_rect), 24 opaque_rect_(opaque_rect),
27 layer_id_(layer_id) { 25 layer_id_(layer_id) {
28 set_picture_pile(picture_pile); 26 set_picture_pile(picture_pile);
29 tile_manager_->RegisterTile(this); 27 tile_manager_->RegisterTile(this);
30 } 28 }
31 29
32 Tile::~Tile() { 30 Tile::~Tile() {
33 tile_manager_->UnregisterTile(this); 31 tile_manager_->UnregisterTile(this);
(...skipping 13 matching lines...) Expand all
47 45
48 void Tile::SetPriority(WhichTree tree, const TilePriority& priority) { 46 void Tile::SetPriority(WhichTree tree, const TilePriority& priority) {
49 if (priority_[tree] == priority) 47 if (priority_[tree] == priority)
50 return; 48 return;
51 49
52 tile_manager_->WillModifyTilePriority(this, tree, priority); 50 tile_manager_->WillModifyTilePriority(this, tree, priority);
53 priority_[tree] = priority; 51 priority_[tree] = priority;
54 } 52 }
55 53
56 } // namespace cc 54 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/tile.h ('k') | cc/resources/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698