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

Unified Diff: third_party/WebKit/public/platform/WebContentLayerClient.h

Issue 1452353002: Turn off computation of the interest rect in cc in synchronized paint mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/public/platform/WebContentLayerClient.h
diff --git a/third_party/WebKit/public/platform/WebContentLayerClient.h b/third_party/WebKit/public/platform/WebContentLayerClient.h
index 7e28aeeec6436c7b7b08faaa1ca92d776f8c6b3f..9447a8b80017c9e0818e8f5d78516ba9e33a9e4d 100644
--- a/third_party/WebKit/public/platform/WebContentLayerClient.h
+++ b/third_party/WebKit/public/platform/WebContentLayerClient.h
@@ -28,10 +28,13 @@
#include "WebCommon.h"
+namespace gfx {
+class Rect;
+}
+
namespace blink {
class WebDisplayItemList;
-struct WebRect;
class BLINK_PLATFORM_EXPORT WebContentLayerClient {
public:
@@ -45,14 +48,15 @@ public:
// Paints the content area for the layer, typically dirty rects submitted
// through WebContentLayer::setNeedsDisplayInRect, submitting drawing commands
// to populate the WebDisplayItemList.
- // The |clip| rect defines the region of interest. The resulting WebDisplayItemList should contain
- // sufficient content to correctly paint the rect, but may also contain other content. The result
- // will be clipped on playback.
+ // The |recordingViewport| rect defines the region of interest. |recordingViewport| may be set by the callee to a
+ // different value. The resulting WebDisplayItemList should contain
+ // sufficient content to correctly paint the final value of |recordingViewport|, but may also contain other content.
+ // The result will be clipped on playback to the final value of |recordingViewport|.
// The |PaintingControlSetting| enum controls painting to isolate different components in performance tests.
- // Currently the DisplayListConstructionDisabled does nothing.
+ // Currently DisplayListConstructionDisabled does nothing.
virtual void paintContents(
WebDisplayItemList*,
- const WebRect& clip,
+ gfx::Rect* recordingViewport,
PaintingControlSetting = PaintDefaultBehavior) = 0;
// Returns an estimate of the current memory usage within this object,

Powered by Google App Engine
This is Rietveld 408576698