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

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: Fix misc bugs introduced in last two patches Created 5 years, 10 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, 43 SYNCHRONOUS_ANIMATE,
44 SYNCHRONOUS_DRAW,
44 MISSED, 45 MISSED,
45 // Not a real type, but used by the IPC system. Should always remain the 46 // Not a real type, but used by the IPC system. Should always remain the
46 // *last* value in this enum. 47 // *last* value in this enum.
47 BEGIN_FRAME_ARGS_TYPE_MAX, 48 BEGIN_FRAME_ARGS_TYPE_MAX,
48 }; 49 };
49 static const char* TypeToString(BeginFrameArgsType type); 50 static const char* TypeToString(BeginFrameArgsType type);
50 51
51 // Creates an invalid set of values. 52 // Creates an invalid set of values.
52 BeginFrameArgs(); 53 BeginFrameArgs();
53 54
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 private: 89 private:
89 BeginFrameArgs(base::TimeTicks frame_time, 90 BeginFrameArgs(base::TimeTicks frame_time,
90 base::TimeTicks deadline, 91 base::TimeTicks deadline,
91 base::TimeDelta interval, 92 base::TimeDelta interval,
92 BeginFrameArgsType type); 93 BeginFrameArgsType type);
93 }; 94 };
94 95
95 } // namespace cc 96 } // namespace cc
96 97
97 #endif // CC_OUTPUT_BEGIN_FRAME_ARGS_H_ 98 #endif // CC_OUTPUT_BEGIN_FRAME_ARGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698