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

Unified Diff: tools/ThermalManager.cpp

Issue 1689823004: fix for gpu valgrind bot (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/ThermalManager.cpp
diff --git a/tools/ThermalManager.cpp b/tools/ThermalManager.cpp
index 7a3911d80ca94bffbd6a410e54ed33bc78d775ca..36f74680022b0055fb7618ef5caec2f100399213 100644
--- a/tools/ThermalManager.cpp
+++ b/tools/ThermalManager.cpp
@@ -94,9 +94,9 @@ ThermalManager::TripPoint::TripPoint(SkString thermalZoneRoot, SkString pointNam
fullPath.appendf("/%s", pointName.c_str());
fPoint = OpenFileAndReadInt32(fullPath.c_str());
fBase = GetTemp(fThermalZoneRoot);
+ fThreshold = threshold;
fDisabled = fBase >= fPoint + fThreshold; // We disable any trip point which start off
// triggered
- fThreshold = threshold;
if (!fDisabled) {
SkDebugf("Trip point %s base - %d trip point-%d\n", fullPath.c_str(),
fBase, fPoint);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698