+2012-02-01 Sheriff Bot <webkit.review.bot@gmail.com>
+
+ Unreviewed, rolling out r106408.
+ http://trac.webkit.org/changeset/106408
+ https://bugs.webkit.org/show_bug.cgi?id=77592
+
+ crashes in chromium mac release tests (Requested by japhet on
+ #webkit).
+
+ * platform/graphics/Region.cpp:
+ * platform/graphics/Region.h:
+ (Region):
+ (Shape):
+
2012-02-01 No'am Rosenthal <noam.rosenthal@nokia.com>
[Texmap] Use glScissors for clipping in TextureMapperGL when possible
void translate(const IntSize&);
- // Returns true if the query region is a subset of this region.
- bool contains(const Region&) const;
-
#ifndef NDEBUG
void dump() const;
#endif
bool canCoalesce(SegmentIterator begin, SegmentIterator end);
- Vector<int, 32> m_segments;
- Vector<Span, 16> m_spans;
-
- friend bool operator==(const Shape&, const Shape&);
+ // FIXME: These vectors should have inline sizes. Figure out a good optimal value.
+ Vector<int> m_segments;
+ Vector<Span> m_spans;
};
IntRect m_bounds;
Shape m_shape;
-
- friend bool operator==(const Region&, const Region&);
- friend bool operator==(const Shape&, const Shape&);
- friend bool operator==(const Span&, const Span&);
};
static inline Region intersect(const Region& a, const Region& b)
return result;
}
-inline bool operator==(const Region& a, const Region& b)
-{
- return a.m_bounds == b.m_bounds && a.m_shape == b.m_shape;
-}
-
-inline bool operator==(const Region::Shape& a, const Region::Shape& b)
-{
- return a.m_spans == b.m_spans && a.m_segments == b.m_segments;
-}
-
-inline bool operator==(const Region::Span& a, const Region::Span& b)
-{
- return a.y == b.y && a.segmentIndex == b.segmentIndex;
-}
-
} // namespace WebCore
#endif // Region_h