diff options
author | boliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-20 04:25:05 +0000 |
---|---|---|
committer | boliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-20 04:26:43 +0000 |
commit | 469239e77f20c4ab2656f0f69b8793076a867120 (patch) | |
tree | 4bf0424ca2eeb22861fbe3f8966235ca3468d9a6 /cc/test/test_in_process_context_provider.cc | |
parent | 338caf0fe6dd106964a84e43f90145f658c2c490 (diff) | |
download | chromium_src-469239e77f20c4ab2656f0f69b8793076a867120.zip chromium_src-469239e77f20c4ab2656f0f69b8793076a867120.tar.gz chromium_src-469239e77f20c4ab2656f0f69b8793076a867120.tar.bz2 |
Add memory limits struct to in-process context
Add SharedMemoryLimits struct to in-process command buffer
context. Pick a reasonable value for the reclaim limit for
synchronous compositor
BUG=402086
Review URL: https://codereview.chromium.org/455083002
Cr-Commit-Position: refs/heads/master@{#290764}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290764 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/test_in_process_context_provider.cc')
-rw-r--r-- | cc/test/test_in_process_context_provider.cc | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/cc/test/test_in_process_context_provider.cc b/cc/test/test_in_process_context_provider.cc index a466d87..b4d580f 100644 --- a/cc/test/test_in_process_context_provider.cc +++ b/cc/test/test_in_process_context_provider.cc @@ -36,16 +36,18 @@ scoped_ptr<gpu::GLInProcessContext> CreateTestInProcessContext() { attribs.bind_generates_resource = false; gfx::GpuPreference gpu_preference = gfx::PreferDiscreteGpu; - scoped_ptr<gpu::GLInProcessContext> context = make_scoped_ptr( - gpu::GLInProcessContext::Create(NULL, - NULL, - is_offscreen, - gfx::kNullAcceleratedWidget, - gfx::Size(1, 1), - NULL, - share_resources, - attribs, - gpu_preference)); + scoped_ptr<gpu::GLInProcessContext> context = + make_scoped_ptr(gpu::GLInProcessContext::Create( + NULL, + NULL, + is_offscreen, + gfx::kNullAcceleratedWidget, + gfx::Size(1, 1), + NULL, + share_resources, + attribs, + gpu_preference, + gpu::GLInProcessContextSharedMemoryLimits())); DCHECK(context); return context.Pass(); |