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

Side by Side Diff: cc/picture_layer_tiling_set.cc

Issue 11639050: cc: Support mask layers in impl-side painting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
« no previous file with comments | « cc/picture_layer_tiling_set.h ('k') | 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/picture_layer_tiling_set.h" 5 #include "cc/picture_layer_tiling_set.h"
6 6
7 namespace cc { 7 namespace cc {
8 8
9 PictureLayerTilingSet::PictureLayerTilingSet( 9 PictureLayerTilingSet::PictureLayerTilingSet(
10 PictureLayerTilingClient * client) 10 PictureLayerTilingClient * client)
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 tilings_.last()->SetClient(client_); 66 tilings_.last()->SetClient(client_);
67 tilings_.last()->SetLayerBounds(layer_bounds_); 67 tilings_.last()->SetLayerBounds(layer_bounds_);
68 return tilings_.last(); 68 return tilings_.last();
69 } 69 }
70 70
71 void PictureLayerTilingSet::Reset() { 71 void PictureLayerTilingSet::Reset() {
72 for (size_t i = 0; i < tilings_.size(); ++i) 72 for (size_t i = 0; i < tilings_.size(); ++i)
73 tilings_[i]->Reset(); 73 tilings_[i]->Reset();
74 } 74 }
75 75
76 PictureLayerTilingSet::Iterator::Iterator(PictureLayerTilingSet* set, 76 PictureLayerTilingSet::Iterator::Iterator(const PictureLayerTilingSet* set,
77 float contents_scale, 77 float contents_scale,
78 gfx::Rect content_rect) 78 gfx::Rect content_rect)
79 : set_(set), 79 : set_(set),
80 contents_scale_(contents_scale), 80 contents_scale_(contents_scale),
81 current_tiling_(-1) { 81 current_tiling_(-1) {
82 missing_region_.Union(content_rect); 82 missing_region_.Union(content_rect);
83 ++(*this); 83 ++(*this);
84 } 84 }
85 85
86 PictureLayerTilingSet::Iterator::~Iterator() { 86 PictureLayerTilingSet::Iterator::~Iterator() {
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 device_viewport, 196 device_viewport,
197 layer_content_scale_x, 197 layer_content_scale_x,
198 layer_content_scale_y, 198 layer_content_scale_y,
199 last_screen_transform, 199 last_screen_transform,
200 current_screen_transform, 200 current_screen_transform,
201 time_delta); 201 time_delta);
202 } 202 }
203 } 203 }
204 204
205 } // namespace cc 205 } // namespace cc
OLDNEW
« no previous file with comments | « cc/picture_layer_tiling_set.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698