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

Unified Diff: cc/picture_layer_tiling_set.h

Issue 12220133: cc: Stretch textures by .5 texels to prevent out of bounds sampling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix cc_unittests Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: cc/picture_layer_tiling_set.h
diff --git a/cc/picture_layer_tiling_set.h b/cc/picture_layer_tiling_set.h
index 14e672265e54d901ad5120feb576c11d9de57fcb..11914fd9ad48d03d30513ebe96bc628b993cdc66 100644
--- a/cc/picture_layer_tiling_set.h
+++ b/cc/picture_layer_tiling_set.h
@@ -71,11 +71,11 @@ class CC_EXPORT PictureLayerTilingSet {
// exactly fill rect with no overlap.
class CC_EXPORT Iterator {
public:
- Iterator(
- const PictureLayerTilingSet* set,
+ Iterator(const PictureLayerTilingSet* set,
float contents_scale,
gfx::Rect content_rect,
- float ideal_contents_scale);
+ float ideal_contents_scale,
+ PictureLayerTiling::LayerDeviceAlignment layerDeviceAlignment);
~Iterator();
// Visible rect (no borders), always in the space of rect,
@@ -100,6 +100,7 @@ class CC_EXPORT PictureLayerTilingSet {
const PictureLayerTilingSet* set_;
float contents_scale_;
float ideal_contents_scale_;
+ PictureLayerTiling::LayerDeviceAlignment layer_device_alignment_;
PictureLayerTiling::Iterator tiling_iter_;
int current_tiling_;
int ideal_tiling_;

Powered by Google App Engine
This is Rietveld 408576698