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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.h

Issue 2342103002: Refactor the way PaintArtifactCompositor is attached and used. (Closed)
Patch Set: none Created 4 years, 3 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/WebViewImpl.h
diff --git a/third_party/WebKit/Source/web/WebViewImpl.h b/third_party/WebKit/Source/web/WebViewImpl.h
index a69995d7d3a426ca11657f123a8234d91eab26c1..51746fdaea87adc7ab73c191d81d6069f7d24de6 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.h
+++ b/third_party/WebKit/Source/web/WebViewImpl.h
@@ -37,7 +37,6 @@
#include "platform/geometry/IntPoint.h"
#include "platform/geometry/IntRect.h"
#include "platform/graphics/GraphicsLayer.h"
-#include "platform/graphics/compositing/PaintArtifactCompositor.h"
#include "platform/heap/Handle.h"
#include "public/platform/WebDisplayMode.h"
#include "public/platform/WebFloatSize.h"
@@ -500,17 +499,6 @@ public:
FloatSize elasticOverscroll() const { return m_elasticOverscroll; }
- // Attaches the PaintArtifactCompositor's tree to this WebView's layer tree
- // view.
- void attachPaintArtifactCompositor();
-
- // Detaches the PaintArtifactCompositor and clears the layer tree view's
- // root layer.
- void detachPaintArtifactCompositor();
-
- // Use in Slimming Paint v2 to update the layer tree for the content.
- PaintArtifactCompositor& getPaintArtifactCompositor() { return m_paintArtifactCompositor; }
-
bool isTransparent() const;
void setIsTransparent(bool value);
@@ -620,6 +608,7 @@ private:
float deviceScaleFactor() const;
void setRootGraphicsLayer(GraphicsLayer*);
+ void setRootLayer(WebLayer*);
void attachCompositorAnimationTimeline(CompositorAnimationTimeline*);
void detachCompositorAnimationTimeline(CompositorAnimationTimeline*);
@@ -762,9 +751,6 @@ private:
const std::unique_ptr<WebViewScheduler> m_scheduler;
- // Manages the layer tree created for this page in Slimming Paint v2.
- PaintArtifactCompositor m_paintArtifactCompositor;
-
double m_lastFrameTimeMonotonic;
// TODO(lfg): This is used in order to disable compositor visibility while

Powered by Google App Engine
This is Rietveld 408576698