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

Unified Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 2278283003: Refactor client visibility handling (Closed)
Patch Set: fix compositor_unittests Created 4 years, 4 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
Index: gpu/command_buffer/client/gles2_implementation.cc
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
index d660b99c445387ee40c3fd8a94fce65c7979bc8d..aa3b18d4e783c28b8bb69de4ca9198c64856346c 100644
--- a/gpu/command_buffer/client/gles2_implementation.cc
+++ b/gpu/command_buffer/client/gles2_implementation.cc
@@ -5861,20 +5861,6 @@ void GLES2Implementation::SetErrorMessageCallback(
error_message_callback_ = callback;
}
-void GLES2Implementation::SetClientVisible(int client_id, bool is_visible) {
- if (is_visible) {
- visible_clients_.insert(client_id);
- } else {
- auto found = visible_clients_.find(client_id);
- if (found != visible_clients_.end())
- visible_clients_.erase(found);
- }
-}
-
-bool GLES2Implementation::AnyClientsVisible() const {
- return !visible_clients_.empty();
-}
-
void GLES2Implementation::SetLostContextCallback(
const base::Closure& callback) {
lost_context_callback_ = callback;

Powered by Google App Engine
This is Rietveld 408576698