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

Unified Diff: gpu/gles2_conform_support/egl/context.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/gles2_conform_support/egl/context.h ('k') | gpu/ipc/in_process_command_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/gles2_conform_support/egl/context.cc
diff --git a/gpu/gles2_conform_support/egl/context.cc b/gpu/gles2_conform_support/egl/context.cc
index 01f0389780fa72190b320de7090947bd42c1083a..c815d8ab1060c8e07ced5660233665ca34ec09b1 100644
--- a/gpu/gles2_conform_support/egl/context.cc
+++ b/gpu/gles2_conform_support/egl/context.cc
@@ -15,6 +15,7 @@
#include "gpu/command_buffer/service/context_group.h"
#include "gpu/command_buffer/service/mailbox_manager.h"
#include "gpu/command_buffer/service/memory_tracking.h"
+#include "gpu/command_buffer/service/service_discardable_manager.h"
#include "gpu/command_buffer/service/transfer_buffer_manager.h"
#include "gpu/gles2_conform_support/egl/config.h"
#include "gpu/gles2_conform_support/egl/display.h"
@@ -52,8 +53,8 @@ Context::Context(Display* display, const Config* config)
config_(config),
is_current_in_some_thread_(false),
is_destroyed_(false),
- gpu_driver_bug_workarounds_(base::CommandLine::ForCurrentProcess()) {
-}
+ discardable_manager_(new gpu::ServiceDiscardableManager()),
+ gpu_driver_bug_workarounds_(base::CommandLine::ForCurrentProcess()) {}
Context::~Context() {
// We might not have a surface, so we must lose the context. Cleanup will
@@ -266,7 +267,7 @@ bool Context::CreateService(gl::GLSurface* gl_surface) {
gpu_preferences_, nullptr, nullptr,
new gpu::gles2::ShaderTranslatorCache(gpu_preferences_),
new gpu::gles2::FramebufferCompletenessCache, feature_info, true, nullptr,
- nullptr, gpu::GpuFeatureInfo()));
+ nullptr, gpu::GpuFeatureInfo(), discardable_manager_.get()));
std::unique_ptr<gpu::gles2::GLES2Decoder> decoder(
gpu::gles2::GLES2Decoder::Create(group.get()));
« no previous file with comments | « gpu/gles2_conform_support/egl/context.h ('k') | gpu/ipc/in_process_command_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698