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

Unified Diff: third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp

Issue 2889653002: Remove cullRect() from PaintOpBuffer. (Closed)
Patch Set: movecullrect2 fixcompile Created 3 years, 7 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: third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp b/third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp
index e2a4891eabfac070d5db544b416c2ec9a0176d9f..7007af24ffcac6419e1891fee01c68de6e51b79f 100644
--- a/third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp
+++ b/third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp
@@ -45,8 +45,10 @@ class MockWebDisplayItemList : public WebDisplayItemList {
public:
~MockWebDisplayItemList() override {}
- MOCK_METHOD2(AppendDrawingItem,
- void(const WebRect&, sk_sp<const PaintRecord>));
+ MOCK_METHOD3(AppendDrawingItem,
+ void(const WebRect& visual_rect,
+ sk_sp<const cc::PaintRecord>,
+ const WebRect& record_bounds));
};
void PaintRecursively(GraphicsLayer* layer, WebDisplayItemList* display_items) {
@@ -845,7 +847,7 @@ TEST_P(FrameThrottlingTest, PaintingViaContentLayerDelegateIsThrottled) {
// If painting of the iframe is throttled, we should only receive two
// drawing items.
MockWebDisplayItemList display_items;
- EXPECT_CALL(display_items, AppendDrawingItem(_, _)).Times(2);
+ EXPECT_CALL(display_items, AppendDrawingItem(_, _, _)).Times(2);
GraphicsLayer* layer = WebView().RootGraphicsLayer();
PaintRecursively(layer, &display_items);

Powered by Google App Engine
This is Rietveld 408576698