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

Unified Diff: gpu/command_buffer/tests/gl_manager.cc

Issue 2814583002: Service/ClientDiscardableManager (Closed)
Patch Set: rebase Created 3 years, 7 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 | « gpu/command_buffer/tests/gl_manager.h ('k') | gpu/gles2_conform_support/egl/context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/tests/gl_manager.cc
diff --git a/gpu/command_buffer/tests/gl_manager.cc b/gpu/command_buffer/tests/gl_manager.cc
index f8e4937a5731a31dbaac3f9e84c074aa6afd87c3..44d51b6be3aba63c1792e775adf127ebc22e27bd 100644
--- a/gpu/command_buffer/tests/gl_manager.cc
+++ b/gpu/command_buffer/tests/gl_manager.cc
@@ -35,6 +35,7 @@
#include "gpu/command_buffer/service/image_manager.h"
#include "gpu/command_buffer/service/mailbox_manager_impl.h"
#include "gpu/command_buffer/service/memory_tracking.h"
+#include "gpu/command_buffer/service/service_discardable_manager.h"
#include "gpu/command_buffer/service/service_utils.h"
#include "gpu/command_buffer/service/sync_point_manager.h"
#include "gpu/command_buffer/service/transfer_buffer_manager.h"
@@ -188,7 +189,8 @@ scoped_refptr<gl::GLContext>* GLManager::base_context_;
GLManager::Options::Options() = default;
GLManager::GLManager()
- : command_buffer_id_(
+ : discardable_manager_(new ServiceDiscardableManager()),
+ command_buffer_id_(
CommandBufferId::FromUnsafeValue(g_next_command_buffer_id++)) {
SetupBaseContext();
}
@@ -301,7 +303,7 @@ void GLManager::InitializeWithCommandLine(
new gpu::gles2::ShaderTranslatorCache(gpu_preferences_),
new gpu::gles2::FramebufferCompletenessCache, feature_info,
options.bind_generates_resource, options.image_factory, nullptr,
- GpuFeatureInfo());
+ GpuFeatureInfo(), discardable_manager_.get());
}
decoder_.reset(::gpu::gles2::GLES2Decoder::Create(context_group));
« no previous file with comments | « gpu/command_buffer/tests/gl_manager.h ('k') | gpu/gles2_conform_support/egl/context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698