1 // Copyright 2015 The Chromium Embedded Framework 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 5 #include "libcef/browser/osr/osr_util.h" 6 7 namespace osr_util { 8 9 namespace { 10 11 // The rate at which new calls to OnPaint will be generated. 12 const int kDefaultFrameRate = 30; 13 14 } // namespace 15 ClampFrameRate(int frame_rate)16int ClampFrameRate(int frame_rate) { 17 if (frame_rate < 1) 18 return kDefaultFrameRate; 19 20 return frame_rate; 21 } 22 23 } // namespace osr_util 24