| Index: third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.cpp b/third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.cpp
|
| index e4bbc8d5ff681d3c471faedb9be350979bc14bbd..e0b6a38895a66564bb3fe8cecf3afca4bb7209c5 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.cpp
|
| @@ -5,6 +5,7 @@
|
| #include "platform/graphics/gpu/SharedGpuContext.h"
|
|
|
| #include "gpu/command_buffer/client/gles2_interface.h"
|
| +#include "gpu/command_buffer/common/capabilities.h"
|
| #include "platform/CrossThreadFunctional.h"
|
| #include "platform/WaitableEvent.h"
|
| #include "platform/WebTaskRunner.h"
|
| @@ -127,4 +128,12 @@ bool SharedGpuContext::IsValidWithoutRestoring() {
|
| ->GetGraphicsResetStatusKHR() == GL_NO_ERROR;
|
| }
|
|
|
| +bool SharedGpuContext::AllowSoftwareToAcceleratedCanvasUpgrade() {
|
| + if (!IsValid())
|
| + return kNoSharedContext;
|
| + SharedGpuContext* this_ptr = GetInstanceForCurrentThread();
|
| + return this_ptr->context_provider_->GetCapabilities()
|
| + .software_to_accelerated_canvas_upgrade;
|
| +}
|
| +
|
| } // blink
|
|
|