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

Side by Side Diff: content/common/gpu/media/rendering_helper.cc

Issue 1544273002: Switch to standard integer types in content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/common/gpu/media/rendering_helper.h" 5 #include "content/common/gpu/media/rendering_helper.h"
6 6
7 #include <string.h>
8
7 #include <algorithm> 9 #include <algorithm>
8 #include <numeric> 10 #include <numeric>
9 #include <vector> 11 #include <vector>
10 12
11 #include "base/bind.h" 13 #include "base/bind.h"
12 #include "base/callback_helpers.h" 14 #include "base/callback_helpers.h"
13 #include "base/command_line.h" 15 #include "base/command_line.h"
14 #include "base/mac/scoped_nsautorelease_pool.h" 16 #include "base/mac/scoped_nsautorelease_pool.h"
15 #include "base/macros.h" 17 #include "base/macros.h"
16 #include "base/message_loop/message_loop.h" 18 #include "base/message_loop/message_loop.h"
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 // When the rendering falls behind, drops frames. 889 // When the rendering falls behind, drops frames.
888 while (scheduled_render_time_ < target) { 890 while (scheduled_render_time_ < target) {
889 scheduled_render_time_ += frame_duration_; 891 scheduled_render_time_ += frame_duration_;
890 DropOneFrameForAllVideos(); 892 DropOneFrameForAllVideos();
891 } 893 }
892 894
893 message_loop_->PostDelayedTask( 895 message_loop_->PostDelayedTask(
894 FROM_HERE, render_task_.callback(), target - now); 896 FROM_HERE, render_task_.callback(), target - now);
895 } 897 }
896 } // namespace content 898 } // namespace content
OLDNEW
« no previous file with comments | « content/common/gpu/media/jpeg_decode_accelerator_unittest.cc ('k') | content/common/gpu/media/v4l2_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698