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

Unified Diff: ui/gl/gl_context.cc

Issue 1880923002: GLContext: Remove WasDirtiedExternally methods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « ui/gl/gl_context.h ('k') | ui/gl/gl_gl_api_implementation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_context.cc
diff --git a/ui/gl/gl_context.cc b/ui/gl/gl_context.cc
index 3e54ebb0b660a110a2ba2809b014f4a8bbe167da..6d41cd0a571530ecf4ed2b3c903cb6ec457ec332 100644
--- a/ui/gl/gl_context.cc
+++ b/ui/gl/gl_context.cc
@@ -42,17 +42,11 @@ void GLContext::ScopedReleaseCurrent::Cancel() {
canceled_ = true;
}
-GLContext::GLContext(GLShareGroup* share_group) :
- share_group_(share_group),
- state_dirtied_externally_(false),
- swap_interval_(1),
- force_swap_interval_zero_(false),
- state_dirtied_callback_(
- base::Bind(&GLContext::SetStateWasDirtiedExternally,
- // Note that if this is not unretained, it will create a cycle (and
- // will never be freed.
- base::Unretained(this),
- true)) {
+GLContext::GLContext(GLShareGroup* share_group)
+ : share_group_(share_group),
+ state_dirtied_externally_(false),
+ swap_interval_(1),
+ force_swap_interval_zero_(false) {
if (!share_group_.get())
share_group_ = new GLShareGroup;
@@ -96,24 +90,6 @@ std::string GLContext::GetGLRenderer() {
return std::string(renderer ? renderer : "");
}
-base::Closure GLContext::GetStateWasDirtiedExternallyCallback() {
- return state_dirtied_callback_.callback();
-}
-
-void GLContext::RestoreStateIfDirtiedExternally() {
- NOTREACHED();
-}
-
-bool GLContext::GetStateWasDirtiedExternally() const {
- DCHECK(virtual_gl_api_);
- return state_dirtied_externally_;
-}
-
-void GLContext::SetStateWasDirtiedExternally(bool dirtied_externally) {
- DCHECK(virtual_gl_api_);
- state_dirtied_externally_ = dirtied_externally;
-}
-
bool GLContext::HasExtension(const char* name) {
std::string extensions = GetExtensions();
extensions += " ";
« no previous file with comments | « ui/gl/gl_context.h ('k') | ui/gl/gl_gl_api_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698