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

Unified Diff: third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.cpp

Issue 2815103003: Disables software to accelerated canvas update on Linux AMD GPUs (Closed)
Patch Set: merge Created 3 years, 8 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 | « third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698