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

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

Issue 816543004: Update from https://crrev.com/308996 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « cc/layers/tiled_layer_unittest.cc ('k') | cc/output/begin_frame_args.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 24 matching lines...) Expand all
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,
44 MISSED, 44 MISSED,
45 // Not a real type, but used by the IPC system. Should always remain the
46 // *last* value in this enum.
47 BEGIN_FRAME_ARGS_TYPE_MAX,
45 }; 48 };
46 static const char* TypeToString(BeginFrameArgsType type); 49 static const char* TypeToString(BeginFrameArgsType type);
47 50
48 // Creates an invalid set of values. 51 // Creates an invalid set of values.
49 BeginFrameArgs(); 52 BeginFrameArgs();
50 53
51 #ifdef NDEBUG 54 #ifdef NDEBUG
52 typedef const void* CreationLocation; 55 typedef const void* CreationLocation;
53 #else 56 #else
54 typedef const tracked_objects::Location& CreationLocation; 57 typedef const tracked_objects::Location& CreationLocation;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 private: 94 private:
92 BeginFrameArgs(base::TimeTicks frame_time, 95 BeginFrameArgs(base::TimeTicks frame_time,
93 base::TimeTicks deadline, 96 base::TimeTicks deadline,
94 base::TimeDelta interval, 97 base::TimeDelta interval,
95 BeginFrameArgsType type); 98 BeginFrameArgsType type);
96 }; 99 };
97 100
98 } // namespace cc 101 } // namespace cc
99 102
100 #endif // CC_OUTPUT_BEGIN_FRAME_ARGS_H_ 103 #endif // CC_OUTPUT_BEGIN_FRAME_ARGS_H_
OLDNEW
« no previous file with comments | « cc/layers/tiled_layer_unittest.cc ('k') | cc/output/begin_frame_args.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698