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

Unified Diff: third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp

Issue 2627323007: Migrate WebGL contexts on backgrounded tabs to the integrated GPU.
Patch Set: Created 3 years, 11 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: third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
index 713c351f8cd66290fb73679d89f8dacea603abf7..1ca069d998c8d5aacadb25dcc462ae3cd49c0bff 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
@@ -199,6 +199,9 @@ void DrawingBuffer::setIsHidden(bool hidden) {
m_isHidden = hidden;
if (m_isHidden)
m_recycledColorBufferQueue.clear();
+ m_gl->PerformanceHintCHROMIUM(hidden ? GL_LOW_POWER_CHROMIUM
+ : GL_DEFAULT_POWER_CHROMIUM);
+ m_gl->Flush();
}
void DrawingBuffer::setFilterQuality(SkFilterQuality filterQuality) {

Powered by Google App Engine
This is Rietveld 408576698