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

Side by Side Diff: cc/output/begin_frame_args.h

Issue 817603002: cc: Make scheduling be driven by vsync for android webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 9 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 #ifndef CC_OUTPUT_BEGIN_FRAME_ARGS_H_ 5 #ifndef CC_OUTPUT_BEGIN_FRAME_ARGS_H_
6 #define CC_OUTPUT_BEGIN_FRAME_ARGS_H_ 6 #define CC_OUTPUT_BEGIN_FRAME_ARGS_H_
7 7
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 22 matching lines...) Expand all
33 #else 33 #else
34 #define BEGINFRAME_FROM_HERE FROM_HERE 34 #define BEGINFRAME_FROM_HERE FROM_HERE
35 #endif 35 #endif
36 36
37 namespace cc { 37 namespace cc {
38 38
39 struct CC_EXPORT BeginFrameArgs { 39 struct CC_EXPORT BeginFrameArgs {
40 enum BeginFrameArgsType { 40 enum BeginFrameArgsType {
41 INVALID, 41 INVALID,
42 NORMAL, 42 NORMAL,
43 SYNCHRONOUS,
brianderson 2015/03/25 23:10:37 If we kept this around, could it help get rid of t
sunnyps 2015/03/27 00:52:48 I would prefer not keeping this around - it seems
44 MISSED, 43 MISSED,
45 // Not a real type, but used by the IPC system. Should always remain the 44 // Not a real type, but used by the IPC system. Should always remain the
46 // *last* value in this enum. 45 // *last* value in this enum.
47 BEGIN_FRAME_ARGS_TYPE_MAX, 46 BEGIN_FRAME_ARGS_TYPE_MAX,
48 }; 47 };
49 static const char* TypeToString(BeginFrameArgsType type); 48 static const char* TypeToString(BeginFrameArgsType type);
50 49
51 // Creates an invalid set of values. 50 // Creates an invalid set of values.
52 BeginFrameArgs(); 51 BeginFrameArgs();
53 52
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 private: 87 private:
89 BeginFrameArgs(base::TimeTicks frame_time, 88 BeginFrameArgs(base::TimeTicks frame_time,
90 base::TimeTicks deadline, 89 base::TimeTicks deadline,
91 base::TimeDelta interval, 90 base::TimeDelta interval,
92 BeginFrameArgsType type); 91 BeginFrameArgsType type);
93 }; 92 };
94 93
95 } // namespace cc 94 } // namespace cc
96 95
97 #endif // CC_OUTPUT_BEGIN_FRAME_ARGS_H_ 96 #endif // CC_OUTPUT_BEGIN_FRAME_ARGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698