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

Unified Diff: sky/engine/web/WebViewImpl.cpp

Issue 763013002: Get rid of the remaining uses of GraphicsLayer. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix diff Created 6 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
« no previous file with comments | « sky/engine/web/WebViewImpl.h ('k') | sky/engine/web/painting/ContinuousPainter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/web/WebViewImpl.cpp
diff --git a/sky/engine/web/WebViewImpl.cpp b/sky/engine/web/WebViewImpl.cpp
index bbebd422432c6d11173cd435e468dc7e61fcd18f..1ee90e99fbe63592083892c2ad4f509a5a578fb6 100644
--- a/sky/engine/web/WebViewImpl.cpp
+++ b/sky/engine/web/WebViewImpl.cpp
@@ -99,7 +99,6 @@
#include "sky/engine/web/WebInputEventConversion.h"
#include "sky/engine/web/WebLocalFrameImpl.h"
#include "sky/engine/web/WebSettingsImpl.h"
-#include "sky/engine/web/painting/ContinuousPainter.h"
#include "sky/engine/wtf/CurrentTime.h"
#include "sky/engine/wtf/RefPtr.h"
#include "sky/engine/wtf/TemporaryChange.h"
@@ -150,9 +149,6 @@ WebViewImpl::WebViewImpl(WebViewClient* client)
, m_isTransparent(false)
, m_tabsToLinks(false)
, m_rootLayer(0)
- , m_rootGraphicsLayer(0)
- , m_rootTransformLayer(0)
- , m_graphicsLayerFactory(adoptPtr(new GraphicsLayerFactoryChromium()))
, m_matchesHeuristicsForGpuRasterization(false)
, m_recreatingGraphicsContext(false)
, m_flingModifier(0)
@@ -906,10 +902,8 @@ void WebViewImpl::beginFrame(const WebBeginFrameArgs& frameTime)
PageWidgetDelegate::animate(m_page.get(), validFrameTime.lastFrameTimeMonotonic);
- if (m_continuousPaintingEnabled) {
- ContinuousPainter::setNeedsDisplayRecursive(m_rootGraphicsLayer);
+ if (m_continuousPaintingEnabled)
m_client->scheduleAnimation();
- }
}
void WebViewImpl::didCommitFrameToCompositor()
@@ -1926,33 +1920,11 @@ void WebViewImpl::suppressInvalidations(bool enable)
m_client->suppressCompositorScheduling(enable);
}
-void WebViewImpl::setRootGraphicsLayer(GraphicsLayer* layer)
-{
- suppressInvalidations(true);
-
- m_rootGraphicsLayer = layer;
- m_rootLayer = layer ? layer->platformLayer() : 0;
- m_rootTransformLayer = 0;
-
- updateRootLayerTransform();
- suppressInvalidations(false);
-}
-
void WebViewImpl::invalidateRect(const IntRect& rect)
{
m_client->didInvalidateRect(rect);
}
-GraphicsLayerFactory* WebViewImpl::graphicsLayerFactory() const
-{
- return m_graphicsLayerFactory.get();
-}
-
-GraphicsLayer* WebViewImpl::rootGraphicsLayer()
-{
- return m_rootGraphicsLayer;
-}
-
void WebViewImpl::scheduleAnimation()
{
m_client->scheduleAnimation();
« no previous file with comments | « sky/engine/web/WebViewImpl.h ('k') | sky/engine/web/painting/ContinuousPainter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698