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

Unified Diff: WebKit/chromium/src/ChromeClientImpl.cpp

Issue 650002: Implementing ACCELERATED_COMPOSITING via Skia Base URL: http://svn.webkit.org/repository/webkit/trunk/
Patch Set: '' Created 10 years, 10 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
« no previous file with comments | « WebKit/chromium/src/ChromeClientImpl.h ('k') | WebKit/chromium/src/WebFrameImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: WebKit/chromium/src/ChromeClientImpl.cpp
===================================================================
--- WebKit/chromium/src/ChromeClientImpl.cpp (revision 55428)
+++ WebKit/chromium/src/ChromeClientImpl.cpp (working copy)
@@ -47,6 +47,7 @@
#include "GeolocationService.h"
#include "GeolocationServiceBridgeChromium.h"
#include "GeolocationServiceChromium.h"
+#include "GraphicsLayer.h"
#include "HitTestResult.h"
#include "IntRect.h"
#include "Node.h"
@@ -689,4 +690,16 @@
m_webView->client()->getGeolocationService()->requestPermissionForFrame(geolocationService->geolocationServiceBridge()->getBridgeId(), frame->document()->url());
}
+#if USE(ACCELERATED_COMPOSITING)
+void ChromeClientImpl::attachRootGraphicsLayer(Frame* frame, GraphicsLayer* graphicsLayer)
+{
+ m_webView->setRootGraphicsLayer(graphicsLayer ? graphicsLayer->platformLayer() : 0);
+}
+
+void ChromeClientImpl::scheduleCompositingLayerSync()
+{
+ m_webView->setRootLayerNeedsDisplay();
+}
+#endif
+
} // namespace WebKit
« no previous file with comments | « WebKit/chromium/src/ChromeClientImpl.h ('k') | WebKit/chromium/src/WebFrameImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698