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

Side by Side Diff: Source/core/timing/PerformanceEntry.h

Issue 908453003: Blink changes to record interest rects for http://w3c.github.io/frame-timing/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add Experimental Blink Feature flag for this change 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Intel Inc. All rights reserved. 3 * Copyright (C) 2012 Intel Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 DEFINE_WRAPPERTYPEINFO(); 44 DEFINE_WRAPPERTYPEINFO();
45 public: 45 public:
46 virtual ~PerformanceEntry(); 46 virtual ~PerformanceEntry();
47 47
48 String name() const; 48 String name() const;
49 String entryType() const; 49 String entryType() const;
50 double startTime() const; 50 double startTime() const;
51 double duration() const; 51 double duration() const;
52 52
53 virtual bool isResource() { return false; } 53 virtual bool isResource() { return false; }
54 virtual bool isRender() { return false; }
55 virtual bool isComposite() { return false; }
54 virtual bool isMark() { return false; } 56 virtual bool isMark() { return false; }
55 virtual bool isMeasure() { return false; } 57 virtual bool isMeasure() { return false; }
56 58
57 static bool startTimeCompareLessThan(PassRefPtrWillBeRawPtr<PerformanceEntry > a, PassRefPtrWillBeRawPtr<PerformanceEntry> b) 59 static bool startTimeCompareLessThan(PassRefPtrWillBeRawPtr<PerformanceEntry > a, PassRefPtrWillBeRawPtr<PerformanceEntry> b)
58 { 60 {
59 return a->startTime() < b->startTime(); 61 return a->startTime() < b->startTime();
60 } 62 }
61 63
62 DEFINE_INLINE_VIRTUAL_TRACE() { } 64 DEFINE_INLINE_VIRTUAL_TRACE() { }
63 65
64 protected: 66 protected:
65 PerformanceEntry(const String& name, const String& entryType, double startTi me, double finishTime); 67 PerformanceEntry(const String& name, const String& entryType, double startTi me, double finishTime);
66 68
67 private: 69 private:
68 const String m_name; 70 const String m_name;
69 const String m_entryType; 71 const String m_entryType;
70 const double m_startTime; 72 const double m_startTime;
71 const double m_duration; 73 const double m_duration;
72 }; 74 };
73 75
74 } // namespace blink 76 } // namespace blink
75 77
76 #endif // PerformanceEntry_h 78 #endif // PerformanceEntry_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698