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

Unified Diff: components/mus/public/cpp/lib/context_provider.cc

Issue 1900993002: Move SharedMemoryLimits out of WebGraphicsContext3DCommandBufferImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@limits
Patch Set: move-limits: types Created 4 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 | « components/mus/public/cpp/context_provider.h ('k') | components/mus/surfaces/direct_output_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/cpp/lib/context_provider.cc
diff --git a/components/mus/public/cpp/lib/context_provider.cc b/components/mus/public/cpp/lib/context_provider.cc
index 0b0b470a7c111c43ce3b3cbf8e5428726d76b448..97e3af465cd8480c3330b3f85bb28fef08522084 100644
--- a/components/mus/public/cpp/lib/context_provider.cc
+++ b/components/mus/public/cpp/lib/context_provider.cc
@@ -16,9 +16,6 @@ ContextProvider::ContextProvider(
mojo::ScopedMessagePipeHandle command_buffer_handle)
: command_buffer_handle_(std::move(command_buffer_handle)),
context_(nullptr) {
- // Enabled the CHROMIUM_image extension to use GpuMemoryBuffers. The
- // implementation of which is used in CommandBufferDriver.
- capabilities_.gpu.image = true;
}
bool ContextProvider::BindToCurrentThread() {
@@ -46,8 +43,12 @@ class GrContext* ContextProvider::GrContext() {
void ContextProvider::InvalidateGrContext(uint32_t state) {}
-cc::ContextProvider::Capabilities ContextProvider::ContextCapabilities() {
- return capabilities_;
+gpu::Capabilities ContextProvider::ContextCapabilities() {
+ gpu::Capabilities capabilities;
+ // Enabled the CHROMIUM_image extension to use GpuMemoryBuffers. The
+ // implementation of which is used in CommandBufferDriver.
+ capabilities.image = true;
+ return capabilities;
}
void ContextProvider::SetupLock() {}
« no previous file with comments | « components/mus/public/cpp/context_provider.h ('k') | components/mus/surfaces/direct_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698