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

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

Issue 504513002: cc: Fix CanRaster dcheck failures ONCE AND FOR ALL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: canraster: typo Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « cc/resources/picture_pile_unittest.cc ('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 #ifndef CC_RESOURCES_TILE_H_ 5 #ifndef CC_RESOURCES_TILE_H_
6 #define CC_RESOURCES_TILE_H_ 6 #define CC_RESOURCES_TILE_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 gfx::Rect opaque_rect() const { return opaque_rect_; } 127 gfx::Rect opaque_rect() const { return opaque_rect_; }
128 float contents_scale() const { return contents_scale_; } 128 float contents_scale() const { return contents_scale_; }
129 gfx::Rect content_rect() const { return content_rect_; } 129 gfx::Rect content_rect() const { return content_rect_; }
130 130
131 int layer_id() const { return layer_id_; } 131 int layer_id() const { return layer_id_; }
132 132
133 int source_frame_number() const { return source_frame_number_; } 133 int source_frame_number() const { return source_frame_number_; }
134 134
135 void set_picture_pile(scoped_refptr<PicturePileImpl> pile) { 135 void set_picture_pile(scoped_refptr<PicturePileImpl> pile) {
136 DCHECK(pile->CanRaster(contents_scale_, content_rect_)) 136 DCHECK(pile->CanRaster(contents_scale_, content_rect_))
137 << "Recording rect: "
137 << gfx::ScaleToEnclosingRect(content_rect_, 1.f / contents_scale_) 138 << gfx::ScaleToEnclosingRect(content_rect_, 1.f / contents_scale_)
138 .ToString(); 139 .ToString();
139 picture_pile_ = pile; 140 picture_pile_ = pile;
140 } 141 }
141 142
142 size_t GPUMemoryUsageInBytes() const; 143 size_t GPUMemoryUsageInBytes() const;
143 144
144 gfx::Size size() const { return size_; } 145 gfx::Size size() const { return size_; }
145 146
146 RasterMode DetermineRasterModeForTree(WhichTree tree) const; 147 RasterMode DetermineRasterModeForTree(WhichTree tree) const;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 197
197 Id id_; 198 Id id_;
198 static Id s_next_id_; 199 static Id s_next_id_;
199 200
200 DISALLOW_COPY_AND_ASSIGN(Tile); 201 DISALLOW_COPY_AND_ASSIGN(Tile);
201 }; 202 };
202 203
203 } // namespace cc 204 } // namespace cc
204 205
205 #endif // CC_RESOURCES_TILE_H_ 206 #endif // CC_RESOURCES_TILE_H_
OLDNEW
« no previous file with comments | « cc/resources/picture_pile_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698