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

Side by Side Diff: cc/region.h

Issue 11417111: cc: Add PictureLayerTilingSet to manage PictureLayerTiling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix win_rel Created 8 years, 1 month 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_unittest.cc ('k') | cc/region.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef CC_REGION_H_ 5 #ifndef CC_REGION_H_
6 #define CC_REGION_H_ 6 #define CC_REGION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 } 48 }
49 49
50 gfx::Rect bounds() const { 50 gfx::Rect bounds() const {
51 return gfx::SkIRectToRect(skregion_.getBounds()); 51 return gfx::SkIRectToRect(skregion_.getBounds());
52 } 52 }
53 53
54 std::string ToString() const; 54 std::string ToString() const;
55 55
56 class CC_EXPORT Iterator { 56 class CC_EXPORT Iterator {
57 public: 57 public:
58 Iterator();
58 Iterator(const Region& region); 59 Iterator(const Region& region);
59 ~Iterator(); 60 ~Iterator();
60 61
61 gfx::Rect rect() const { 62 gfx::Rect rect() const {
62 return gfx::SkIRectToRect(it_.rect()); 63 return gfx::SkIRectToRect(it_.rect());
63 } 64 }
64 65
65 void next() { 66 void next() {
66 it_.next(); 67 it_.next();
67 } 68 }
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 119
119 inline Region UnionRegions(const Region& a, gfx::Rect b) { 120 inline Region UnionRegions(const Region& a, gfx::Rect b) {
120 Region result = a; 121 Region result = a;
121 result.Union(b); 122 result.Union(b);
122 return result; 123 return result;
123 } 124 }
124 125
125 } // namespace cc 126 } // namespace cc
126 127
127 #endif // CC_REGION_H_ 128 #endif // CC_REGION_H_
OLDNEW
« no previous file with comments | « cc/picture_layer_tiling_unittest.cc ('k') | cc/region.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698