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

Side by Side Diff: content/browser/android/in_process/synchronous_compositor_external_begin_frame_source.cc

Issue 1143433005: Remove gfx::FrameTime for a single clock source (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Handling patch for mac files Created 5 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/browser/android/in_process/synchronous_compositor_external_beg in_frame_source.h" 5 #include "content/browser/android/in_process/synchronous_compositor_external_beg in_frame_source.h"
6 6
7 #include "cc/output/begin_frame_args.h" 7 #include "cc/output/begin_frame_args.h"
8 #include "content/browser/android/in_process/synchronous_compositor_impl.h" 8 #include "content/browser/android/in_process/synchronous_compositor_impl.h"
9 #include "content/browser/android/in_process/synchronous_compositor_registry.h" 9 #include "content/browser/android/in_process/synchronous_compositor_registry.h"
10 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
11 #include "ui/gfx/frame_time.h"
12 11
13 namespace content { 12 namespace content {
14 13
15 SynchronousCompositorExternalBeginFrameSource:: 14 SynchronousCompositorExternalBeginFrameSource::
16 SynchronousCompositorExternalBeginFrameSource(int routing_id) 15 SynchronousCompositorExternalBeginFrameSource(int routing_id)
17 : routing_id_(routing_id), 16 : routing_id_(routing_id),
18 registered_(false), 17 registered_(false),
19 compositor_(nullptr) { 18 compositor_(nullptr) {
20 } 19 }
21 20
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 57
59 // Not using base::NonThreadSafe as we want to enforce a more exacting threading 58 // Not using base::NonThreadSafe as we want to enforce a more exacting threading
60 // requirement: SynchronousCompositorExternalBeginFrameSource() must only be 59 // requirement: SynchronousCompositorExternalBeginFrameSource() must only be
61 // used on the UI thread. 60 // used on the UI thread.
62 bool 61 bool
63 SynchronousCompositorExternalBeginFrameSource::CalledOnValidThread() const { 62 SynchronousCompositorExternalBeginFrameSource::CalledOnValidThread() const {
64 return BrowserThread::CurrentlyOn(BrowserThread::UI); 63 return BrowserThread::CurrentlyOn(BrowserThread::UI);
65 } 64 }
66 65
67 } // namespace content 66 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698