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

Unified Diff: components/mus/public/cpp/lib/gles2_context.cc

Issue 2007813003: Remove Mojo GLES2 API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 4 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 | « components/mus/public/cpp/lib/context_provider.cc ('k') | components/mus/public/cpp/tests/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/cpp/lib/gles2_context.cc
diff --git a/components/mus/public/cpp/lib/gles2_context.cc b/components/mus/public/cpp/lib/gles2_context.cc
index 196284963d63a5d2edd536b650c2752dcd1b86ae..c71f0ec6a650979d1c6945c9bb22820f03731381 100644
--- a/components/mus/public/cpp/lib/gles2_context.cc
+++ b/components/mus/public/cpp/lib/gles2_context.cc
@@ -18,12 +18,8 @@
namespace mus {
GLES2Context::GLES2Context(const std::vector<int32_t>& attribs,
- mojo::ScopedMessagePipeHandle command_buffer_handle,
- MojoGLES2ContextLost lost_callback,
- void* closure)
- : command_buffer_(attribs, std::move(command_buffer_handle)),
- lost_callback_(lost_callback),
- closure_(closure) {}
+ mojo::ScopedMessagePipeHandle command_buffer_handle)
+ : command_buffer_(attribs, std::move(command_buffer_handle)) {}
GLES2Context::~GLES2Context() {}
@@ -53,13 +49,7 @@ bool GLES2Context::Initialize() {
default_limits.max_transfer_buffer_size,
default_limits.mapped_memory_reclaim_limit))
return false;
- implementation_->SetLostContextCallback(
- base::Bind(&GLES2Context::OnLostContext, base::Unretained(this)));
return true;
}
-void GLES2Context::OnLostContext() {
- lost_callback_(closure_);
-}
-
} // namespace mus
« no previous file with comments | « components/mus/public/cpp/lib/context_provider.cc ('k') | components/mus/public/cpp/tests/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698