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

Unified Diff: Source/WebCore/page/Page.cpp

Issue 7671031: Merge 92520 - [chromium] Accelerated canvas breaks when moving canvases or resources between Pages (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/835/
Patch Set: Created 9 years, 4 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/WebCore/page/Page.h ('k') | Source/WebCore/platform/graphics/chromium/Canvas2DLayerChromium.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/page/Page.cpp
===================================================================
--- Source/WebCore/page/Page.cpp (revision 93254)
+++ Source/WebCore/page/Page.cpp (working copy)
@@ -75,10 +75,6 @@
#include <wtf/StdLibExtras.h>
#include <wtf/text/StringHash.h>
-#if ENABLE(ACCELERATED_2D_CANVAS)
-#include "GraphicsContext3D.h"
-#endif
-
#if ENABLE(DOM_STORAGE)
#include "StorageArea.h"
#include "StorageNamespace.h"
@@ -752,23 +748,6 @@
frame->script()->attachDebugger(m_debugger);
}
-GraphicsContext3D* Page::sharedGraphicsContext3D()
-{
-#if ENABLE(ACCELERATED_2D_CANVAS)
- if (!m_sharedGraphicsContext3D) {
- GraphicsContext3D::Attributes attr;
- attr.depth = false;
- attr.stencil = true;
- attr.antialias = false;
- attr.canRecoverFromContextLoss = false; // Canvas contexts can not handle lost contexts.
- m_sharedGraphicsContext3D = GraphicsContext3D::create(attr, chrome());
- }
- return m_sharedGraphicsContext3D.get();
-#else // !ENABLE(ACCELERATED_2D_CANVAS)
- return 0;
-#endif
-}
-
#if ENABLE(DOM_STORAGE)
StorageNamespace* Page::sessionStorage(bool optionalCreate)
{
« no previous file with comments | « Source/WebCore/page/Page.h ('k') | Source/WebCore/platform/graphics/chromium/Canvas2DLayerChromium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698