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

Unified Diff: mojo/cc/context_provider_mojo.cc

Issue 1168943002: Remove ContextProvider::IsContextLost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: contextprovider: . Created 5 years, 6 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 | « mojo/cc/context_provider_mojo.h ('k') | ui/compositor/test/in_process_context_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/cc/context_provider_mojo.cc
diff --git a/mojo/cc/context_provider_mojo.cc b/mojo/cc/context_provider_mojo.cc
index dff93621adabf4f3f28232445d779a023d049b36..fc3b720625f3a01e2e757adc4b34560fd4504297 100644
--- a/mojo/cc/context_provider_mojo.cc
+++ b/mojo/cc/context_provider_mojo.cc
@@ -12,8 +12,7 @@ namespace mojo {
ContextProviderMojo::ContextProviderMojo(
ScopedMessagePipeHandle command_buffer_handle)
- : command_buffer_handle_(command_buffer_handle.Pass()),
- context_lost_(false) {
+ : command_buffer_handle_(command_buffer_handle.Pass()) {
}
bool ContextProviderMojo::BindToCurrentThread() {
@@ -53,9 +52,6 @@ base::Lock* ContextProviderMojo::GetLock() {
return &context_lock_;
}
-bool ContextProviderMojo::IsContextLost() {
- return context_lost_;
-}
bool ContextProviderMojo::DestroyedOnMainThread() { return !context_; }
ContextProviderMojo::~ContextProviderMojo() {
@@ -65,7 +61,6 @@ ContextProviderMojo::~ContextProviderMojo() {
}
void ContextProviderMojo::ContextLost() {
- context_lost_ = true;
}
} // namespace mojo
« no previous file with comments | « mojo/cc/context_provider_mojo.h ('k') | ui/compositor/test/in_process_context_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698