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

Unified Diff: tools/ThermalManager.cpp

Issue 1684653002: enable ThermalManager on Android (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase 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 | tools/nanobench_flags.json » ('j') | 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 36f74680022b0055fb7618ef5caec2f100399213..21c0fc367fa8f895ace7faf87e0acdde4b50c911 100644
--- a/tools/ThermalManager.cpp
+++ b/tools/ThermalManager.cpp
@@ -95,7 +95,7 @@ ThermalManager::TripPoint::TripPoint(SkString thermalZoneRoot, SkString pointNam
fPoint = OpenFileAndReadInt32(fullPath.c_str());
fBase = GetTemp(fThermalZoneRoot);
fThreshold = threshold;
- fDisabled = fBase >= fPoint + fThreshold; // We disable any trip point which start off
+ fDisabled = fBase + fThreshold >= fPoint; // We disable any trip point which start off
// triggered
if (!fDisabled) {
SkDebugf("Trip point %s base - %d trip point-%d\n", fullPath.c_str(),
« no previous file with comments | « no previous file | tools/nanobench_flags.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698