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

Unified Diff: gpu/command_buffer/tests/fuzzer_main.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/service/texture_manager_unittest.cc ('k') | gpu/command_buffer/tests/gl_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/tests/fuzzer_main.cc
diff --git a/gpu/command_buffer/tests/fuzzer_main.cc b/gpu/command_buffer/tests/fuzzer_main.cc
index 557b228cfaa6916c3c95a56bb844c2049ee95a03..30f72e5e818022e964c4b32414b50362b93bbef6 100644
--- a/gpu/command_buffer/tests/fuzzer_main.cc
+++ b/gpu/command_buffer/tests/fuzzer_main.cc
@@ -25,6 +25,7 @@
#include "gpu/command_buffer/service/gpu_switches.h"
#include "gpu/command_buffer/service/logger.h"
#include "gpu/command_buffer/service/mailbox_manager_impl.h"
+#include "gpu/command_buffer/service/service_discardable_manager.h"
#include "gpu/command_buffer/service/sync_point_manager.h"
#include "gpu/command_buffer/service/transfer_buffer_manager.h"
#include "ui/gfx/geometry/size.h"
@@ -145,7 +146,7 @@ class CommandBufferSetup {
gpu_preferences_, mailbox_manager_.get(), nullptr, translator_cache_,
completeness_cache_, feature_info, true /* bind_generates_resource */,
nullptr /* image_factory */, nullptr /* progress_reporter */,
- GpuFeatureInfo());
+ GpuFeatureInfo(), &discardable_manager_);
command_buffer_.reset(
new CommandBufferService(context_group->transfer_buffer_manager()));
command_buffer_->SetPutOffsetChangeCallback(
@@ -309,6 +310,7 @@ class CommandBufferSetup {
scoped_refptr<gles2::MailboxManager> mailbox_manager_;
scoped_refptr<gl::GLShareGroup> share_group_;
const gpu::CommandBufferId command_buffer_id_;
+ ServiceDiscardableManager discardable_manager_;
bool recreate_context_ = false;
scoped_refptr<gl::GLSurface> surface_;
« no previous file with comments | « gpu/command_buffer/service/texture_manager_unittest.cc ('k') | gpu/command_buffer/tests/gl_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698