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

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

Issue 1052103002: Revert of cc: Make scheduling be driven by vsync for android webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 MISSED, 44 MISSED,
44 // Not a real type, but used by the IPC system. Should always remain the 45 // Not a real type, but used by the IPC system. Should always remain the
45 // *last* value in this enum. 46 // *last* value in this enum.
46 BEGIN_FRAME_ARGS_TYPE_MAX, 47 BEGIN_FRAME_ARGS_TYPE_MAX,
47 }; 48 };
48 static const char* TypeToString(BeginFrameArgsType type); 49 static const char* TypeToString(BeginFrameArgsType type);
49 50
50 // Creates an invalid set of values. 51 // Creates an invalid set of values.
51 BeginFrameArgs(); 52 BeginFrameArgs();
52 53
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 private: 88 private:
88 BeginFrameArgs(base::TimeTicks frame_time, 89 BeginFrameArgs(base::TimeTicks frame_time,
89 base::TimeTicks deadline, 90 base::TimeTicks deadline,
90 base::TimeDelta interval, 91 base::TimeDelta interval,
91 BeginFrameArgsType type); 92 BeginFrameArgsType type);
92 }; 93 };
93 94
94 } // namespace cc 95 } // namespace cc
95 96
96 #endif // CC_OUTPUT_BEGIN_FRAME_ARGS_H_ 97 #endif // CC_OUTPUT_BEGIN_FRAME_ARGS_H_
OLDNEW
« no previous file with comments | « android_webview/browser/browser_view_renderer_unittest.cc ('k') | cc/output/begin_frame_args.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698