summaryrefslogtreecommitdiff
path: root/chromium/third_party/trace-viewer/src/cc/tile_coverage_rect.js
blob: 7eb4232ee2d02b6f7fcc20c1268f4793f9d575a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

'use strict';

base.exportTo('cc', function() {
  /**
   * This class represents a tile (from impl side) and its final rect on the
   * layer. Note that the rect is determined by what is needed to cover all
   * of the layer without overlap.
   * @constructor
   */
  function TileCoverageRect(rect, tile) {
    this.geometryRect = rect;
    this.tile = tile;
  }

  return {
    TileCoverageRect: TileCoverageRect
  };
});