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

Unified Diff: tracing/tracing/extras/chrome/cc/tile.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: rebase Created 3 years, 9 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 | « tracing/tracing/extras/chrome/cc/region.html ('k') | tracing/tracing/extras/chrome/cc/util.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/extras/chrome/cc/tile.html
diff --git a/tracing/tracing/extras/chrome/cc/tile.html b/tracing/tracing/extras/chrome/cc/tile.html
index 6708089dcb14797d794aa4a4d3ecdadea8921879..91072836a8810be23715e58cae56bdc510a4005f 100644
--- a/tracing/tracing/extras/chrome/cc/tile.html
+++ b/tracing/tracing/extras/chrome/cc/tile.html
@@ -52,28 +52,31 @@ tr.exportTo('tr.e.cc', function() {
// This check is for backward compatability. It can probably
// be removed once we're confident that most traces contain
// content_rect.
- if (this.contentRect)
+ if (this.contentRect) {
this.layerRect = this.contentRect.scale(1.0 / this.contentsScale);
+ }
- if (this.isSolidColor)
+ if (this.isSolidColor) {
this.type_ = tr.e.cc.tileTypes.solidColor;
- else if (!this.hasResource)
+ } else if (!this.hasResource) {
this.type_ = tr.e.cc.tileTypes.missing;
- else if (this.resolution === 'HIGH_RESOLUTION')
+ } else if (this.resolution === 'HIGH_RESOLUTION') {
this.type_ = tr.e.cc.tileTypes.highRes;
- else if (this.resolution === 'LOW_RESOLUTION')
+ } else if (this.resolution === 'LOW_RESOLUTION') {
this.type_ = tr.e.cc.tileTypes.lowRes;
- else
+ } else {
this.type_ = tr.e.cc.tileTypes.unknown;
+ }
},
getTypeForLayer: function(layer) {
var type = this.type_;
if (type === tr.e.cc.tileTypes.unknown) {
- if (this.contentsScale < layer.idealContentsScale)
+ if (this.contentsScale < layer.idealContentsScale) {
type = tr.e.cc.tileTypes.extraLowRes;
- else if (this.contentsScale > layer.idealContentsScale)
+ } else if (this.contentsScale > layer.idealContentsScale) {
type = tr.e.cc.tileTypes.extraHighRes;
+ }
}
return type;
}
« no previous file with comments | « tracing/tracing/extras/chrome/cc/region.html ('k') | tracing/tracing/extras/chrome/cc/util.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698