scroller_size_metrics.h 574 B

12345678910111213141516
  1. // Copyright 2017 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef CC_INPUT_SCROLLER_SIZE_METRICS_H_
  5. #define CC_INPUT_SCROLLER_SIZE_METRICS_H_
  6. namespace cc {
  7. // Use the two constants to record GPU memory for tilings. Any layer that
  8. // costs more than ~1GB will get capped.
  9. static constexpr int kGPUMemoryForTilingsLargestBucketKb = 1000000;
  10. static constexpr int kGPUMemoryForTilingsBucketCount = 50;
  11. } // namespace cc
  12. #endif // CC_INPUT_SCROLLER_SIZE_METRICS_H_