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

Unified Diff: gpu/command_buffer/client/gl_in_process_context.h

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
Index: gpu/command_buffer/client/gl_in_process_context.h
diff --git a/gpu/command_buffer/client/gl_in_process_context.h b/gpu/command_buffer/client/gl_in_process_context.h
index eab98b25e2d90aa21dcb159f7f42948d1bae8af0..047aee915e839b294c1779cc18383fe8090b075f 100644
--- a/gpu/command_buffer/client/gl_in_process_context.h
+++ b/gpu/command_buffer/client/gl_in_process_context.h
@@ -28,21 +28,12 @@ class SurfaceTexture;
#endif
namespace gpu {
+struct SharedMemoryLimits;
namespace gles2 {
class GLES2Implementation;
}
-struct GL_IN_PROCESS_CONTEXT_EXPORT GLInProcessContextSharedMemoryLimits {
- GLInProcessContextSharedMemoryLimits();
-
- int32_t command_buffer_size;
- unsigned int start_transfer_buffer_size;
- unsigned int min_transfer_buffer_size;
- unsigned int max_transfer_buffer_size;
- unsigned int mapped_memory_reclaim_limit;
-};
-
class GL_IN_PROCESS_CONTEXT_EXPORT GLInProcessContext {
public:
virtual ~GLInProcessContext() {}
@@ -64,7 +55,7 @@ class GL_IN_PROCESS_CONTEXT_EXPORT GLInProcessContext {
GLInProcessContext* share_context,
const gpu::gles2::ContextCreationAttribHelper& attribs,
gfx::GpuPreference gpu_preference,
- const GLInProcessContextSharedMemoryLimits& memory_limits,
+ const SharedMemoryLimits& memory_limits,
GpuMemoryBufferManager* gpu_memory_buffer_manager,
ImageFactory* image_factory);
@@ -72,8 +63,6 @@ class GL_IN_PROCESS_CONTEXT_EXPORT GLInProcessContext {
// can be used without making it current.
virtual gles2::GLES2Implementation* GetImplementation() = 0;
- virtual size_t GetMappedMemoryLimit() = 0;
-
virtual void SetLock(base::Lock* lock) = 0;
};
« no previous file with comments | « content/common/gpu/client/gpu_in_process_context_tests.cc ('k') | gpu/command_buffer/client/gl_in_process_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698