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

Unified Diff: cc/picture_layer_tiling.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.h
diff --git a/cc/picture_layer_tiling.h b/cc/picture_layer_tiling.h
index 58883af4081888041b88146d1aebd49d658531df..ed56073e0e71aaa609a895b583ec958daaefc18a 100644
--- a/cc/picture_layer_tiling.h
+++ b/cc/picture_layer_tiling.h
@@ -65,6 +65,12 @@ class CC_EXPORT PictureLayerTiling {
return all_tiles;
}
+ enum LayerDeviceAlignment {
+ LayerDeviceAlignmentUnknown,
+ LayerAlignedToDevice,
+ LayerNotAlignedToDevice,
+ };
+
// Iterate over all tiles to fill content_rect. Even if tiles are invalid
// (i.e. no valid resource) this tiling should still iterate over them.
// The union of all geometry_rect calls for each element iterated over should
@@ -72,10 +78,10 @@ class CC_EXPORT PictureLayerTiling {
class CC_EXPORT Iterator {
public:
Iterator();
- Iterator(
- const PictureLayerTiling* tiling,
+ Iterator(const PictureLayerTiling* tiling,
float dest_scale,
- gfx::Rect rect);
+ gfx::Rect rect,
+ LayerDeviceAlignment layerDeviceAlignment);
~Iterator();
// Visible rect (no borders), always in the space of content_rect,

Powered by Google App Engine
This is Rietveld 408576698