| Index: third_party/WebKit/Source/platform/graphics/paint/CullRect.h
|
| diff --git a/third_party/WebKit/Source/platform/graphics/paint/CullRect.h b/third_party/WebKit/Source/platform/graphics/paint/CullRect.h
|
| index 20ca2ad43f16c4fdd0d91fa15d48ee2d3ce17d92..48aa42fcb224e51e3fe85b709c72774b7229e074 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/paint/CullRect.h
|
| +++ b/third_party/WebKit/Source/platform/graphics/paint/CullRect.h
|
| @@ -24,6 +24,7 @@ class PLATFORM_EXPORT CullRect {
|
| DISALLOW_NEW();
|
|
|
| public:
|
| + CullRect() {}
|
| explicit CullRect(const IntRect& rect) : m_rect(rect) {}
|
| CullRect(const CullRect&, const IntPoint& offset);
|
| CullRect(const CullRect&, const IntSize& offset);
|
| @@ -41,6 +42,8 @@ class PLATFORM_EXPORT CullRect {
|
| private:
|
| IntRect m_rect;
|
|
|
| + friend bool operator==(const CullRect&, const CullRect&);
|
| +
|
| // TODO(chrishtr): temporary while we implement CullRect everywhere.
|
| friend class FramePainter;
|
| friend class GridPainter;
|
| @@ -53,6 +56,13 @@ class PLATFORM_EXPORT CullRect {
|
| friend class WebPluginContainerImpl;
|
| };
|
|
|
| +inline bool operator==(const CullRect& a, const CullRect& b) {
|
| + return a.m_rect == b.m_rect;
|
| +}
|
| +inline bool operator!=(const CullRect& a, const CullRect& b) {
|
| + return !(a == b);
|
| +}
|
| +
|
| } // namespace blink
|
|
|
| #endif // CullRect_h
|
|
|