Bug 1284940 - Increase the max number of tiles in a TiledRegion. r?mstange draft
authorKartikaya Gupta <kgupta@mozilla.com>
Mon, 11 Jul 2016 13:06:53 -0400
changeset 386325 d508fc21a6371038eaa3f3165a6755c8f929ea55
parent 386302 214884d507ee369c1cf14edb26527c4f9a97bf48
child 525081 c1dd3e573bb83f5e07d20fbc43cf32d84f2d89d6
push id22671
push userkgupta@mozilla.com
push dateMon, 11 Jul 2016 17:07:23 +0000
reviewersmstange
bugs1284940
milestone50.0a1
Bug 1284940 - Increase the max number of tiles in a TiledRegion. r?mstange MozReview-Commit-ID: 4ndRuvllDAr
gfx/src/TiledRegion.cpp
--- a/gfx/src/TiledRegion.cpp
+++ b/gfx/src/TiledRegion.cpp
@@ -9,17 +9,17 @@
 #include <algorithm>
 
 #include "mozilla/fallible.h"
 
 namespace mozilla {
 namespace gfx {
 
 static const int32_t kTileSize = 256;
-static const size_t kMaxTiles = 100;
+static const size_t kMaxTiles = 1000;
 
 /**
  * TiledRegionImpl stores an array of non-empty rectangles (pixman_box32_ts) to
  * represent the region. Each rectangle is contained in a single tile;
  * rectangles never cross tile boundaries. The rectangles are sorted by their
  * tile's origin in top-to-bottom, left-to-right order.
  * (Note that this can mean that a rectangle r1 can come before another
  * rectangle r2 even if r2.y1 < r1.y1, as long as the two rects are in the same