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

Unified Diff: blimp/client/feature/compositor/blimp_context_provider.cc

Issue 1898033005: Use gpu::SharedMemoryLimits for in process GL contexts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move-limits
Patch Set: inproc-limits: webviewlimits 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 | « android_webview/browser/aw_render_thread_context_provider.cc ('k') | cc/test/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/feature/compositor/blimp_context_provider.cc
diff --git a/blimp/client/feature/compositor/blimp_context_provider.cc b/blimp/client/feature/compositor/blimp_context_provider.cc
index 241e42e7e47e5b85c9ae77a237209ffe793c7a21..9beeb9f3006556593d4240d1dc94f80fc19b2ee2 100644
--- a/blimp/client/feature/compositor/blimp_context_provider.cc
+++ b/blimp/client/feature/compositor/blimp_context_provider.cc
@@ -10,6 +10,7 @@
#include "gpu/command_buffer/client/gl_in_process_context.h"
#include "gpu/command_buffer/client/gles2_implementation.h"
#include "gpu/command_buffer/client/gles2_lib.h"
+#include "gpu/command_buffer/client/shared_memory_limits.h"
#include "gpu/skia_bindings/grcontext_for_gles2_interface.h"
#include "third_party/skia/include/gpu/GrContext.h"
#include "third_party/skia/include/gpu/gl/GrGLInterface.h"
@@ -43,7 +44,7 @@ BlimpContextProvider::BlimpContextProvider(
context_.reset(gpu::GLInProcessContext::Create(
nullptr /* service */, nullptr /* surface */, false /* is_offscreen */,
widget, gfx::Size(1, 1), nullptr /* share_context */, attribs_for_gles2,
- gfx::PreferDiscreteGpu, gpu::GLInProcessContextSharedMemoryLimits(),
+ gfx::PreferDiscreteGpu, gpu::SharedMemoryLimits(),
gpu_memory_buffer_manager, nullptr /* memory_limits */));
context_->GetImplementation()->SetLostContextCallback(
base::Bind(&BlimpContextProvider::OnLostContext, base::Unretained(this)));
« no previous file with comments | « android_webview/browser/aw_render_thread_context_provider.cc ('k') | cc/test/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698