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

Unified Diff: Source/core/testing/DummyPageHolder.cpp

Issue 261143003: Change default force composite setting to true (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 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
« no previous file with comments | « Source/core/inspector/InspectorOverlay.cpp ('k') | Source/web/WebEmbeddedWorkerImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/DummyPageHolder.cpp
diff --git a/Source/core/testing/DummyPageHolder.cpp b/Source/core/testing/DummyPageHolder.cpp
index 61b2f77cc869311e401d4f80d94f970b338dc355..1014a150bf11689172a851bce476bbbaf788e0e9 100644
--- a/Source/core/testing/DummyPageHolder.cpp
+++ b/Source/core/testing/DummyPageHolder.cpp
@@ -34,6 +34,7 @@
#include "core/frame/DOMWindow.h"
#include "core/frame/FrameView.h"
#include "core/frame/LocalFrame.h"
+#include "core/frame/Settings.h"
#include "wtf/Assertions.h"
namespace WebCore {
@@ -53,6 +54,10 @@ DummyPageHolder::DummyPageHolder(const IntSize& initialViewSize)
m_pageClients.backForwardClient = &m_backForwardClient;
m_page = adoptPtrWillBeNoop(new Page(m_pageClients));
+ Settings& settings = m_page->settings();
+ // FIXME: http://crbug.com/363843. This needs to find a better way to
+ // not create graphics layers.
+ settings.setAcceleratedCompositingEnabled(false);
m_frame = LocalFrame::create(&m_frameLoaderClient, &m_page->frameHost(), 0);
m_frame->setView(FrameView::create(m_frame.get(), initialViewSize));
« no previous file with comments | « Source/core/inspector/InspectorOverlay.cpp ('k') | Source/web/WebEmbeddedWorkerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698