| Index: Source/core/testing/Internals.cpp
|
| diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
|
| index 13879bddf150e38dc9e9b57c0b482f06cf8ea46e..6720306e36a14f5eb39c1e28dca7cedc45a3d761 100644
|
| --- a/Source/core/testing/Internals.cpp
|
| +++ b/Source/core/testing/Internals.cpp
|
| @@ -93,6 +93,7 @@
|
| #include "core/platform/Cursor.h"
|
| #include "core/platform/Language.h"
|
| #include "core/platform/graphics/IntRect.h"
|
| +#include "core/platform/graphics/gpu/SharedGraphicsContext3D.h"
|
| #include "core/rendering/RenderMenuList.h"
|
| #include "core/rendering/RenderObject.h"
|
| #include "core/rendering/RenderTreeAsText.h"
|
| @@ -1968,4 +1969,13 @@ bool Internals::isSelectPopupVisible(Node* node)
|
| return menuList->popupIsVisible();
|
| }
|
|
|
| +bool Internals::loseSharedGraphicsContext3D()
|
| +{
|
| + RefPtr<GraphicsContext3D> sharedContext = SharedGraphicsContext3D::get();
|
| + if (!sharedContext)
|
| + return false;
|
| + sharedContext->getExtensions()->loseContextCHROMIUM(Extensions3D::GUILTY_CONTEXT_RESET_ARB, Extensions3D::INNOCENT_CONTEXT_RESET_ARB);
|
| + return true;
|
| +}
|
| +
|
| }
|
|
|