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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.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
Index: content/browser/renderer_host/render_widget_host_view_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index d8a3a745ff675fb6d5552246ce64d905771ef848..db2165795427adf73aa6363e5de3df1e19905925 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -170,14 +170,12 @@ void GLHelperHolder::Initialize() {
size_t full_screen_texture_size_in_bytes = display_info.GetDisplayHeight() *
display_info.GetDisplayWidth() *
kBytesPerPixel;
- WebGraphicsContext3DCommandBufferImpl::SharedMemoryLimits limits;
+ gpu::SharedMemoryLimits limits;
limits.command_buffer_size = 64 * 1024;
limits.start_transfer_buffer_size = 64 * 1024;
limits.min_transfer_buffer_size = 64 * 1024;
limits.max_transfer_buffer_size = std::min(
3 * full_screen_texture_size_in_bytes, kDefaultMaxTransferBufferSize);
- limits.mapped_memory_reclaim_limit =
- WebGraphicsContext3DCommandBufferImpl::kNoLimit;
bool share_resources = true;
// TODO(danakj): This should be false probably, it is for the main thread
@@ -189,9 +187,9 @@ void GLHelperHolder::Initialize() {
new WebGraphicsContext3DCommandBufferImpl(
gpu::kNullSurfaceHandle, // offscreen
url, gpu_channel_host.get(), attributes, gfx::PreferIntegratedGpu,
- share_resources, automatic_flushes, limits, nullptr));
+ share_resources, automatic_flushes, nullptr));
provider_ = new ContextProviderCommandBuffer(
- std::move(context), BROWSER_OFFSCREEN_MAINTHREAD_CONTEXT);
+ std::move(context), limits, BROWSER_OFFSCREEN_MAINTHREAD_CONTEXT);
if (!provider_->BindToCurrentThread())
return;
provider_->ContextGL()->TraceBeginCHROMIUM(
« no previous file with comments | « content/browser/renderer_host/compositor_impl_android.cc ('k') | content/common/gpu/client/context_provider_command_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698