| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 int argumentCount() const { return m_argumentCount; } | 168 int argumentCount() const { return m_argumentCount; } |
| 169 bool isNull() const { return !m_name; } | 169 bool isNull() const { return !m_name; } |
| 170 | 170 |
| 171 bool asBool(const char* name) const | 171 bool asBool(const char* name) const |
| 172 { | 172 { |
| 173 return parameter(name, TypeBool).m_bool; | 173 return parameter(name, TypeBool).m_bool; |
| 174 } | 174 } |
| 175 long long asInt(const char* name) const | 175 long long asInt(const char* name) const |
| 176 { | 176 { |
| 177 size_t index = findParameter(name); | 177 size_t index = findParameter(name); |
| 178 if (index == notFound || (m_argumentTypes[index] != TypeInt && m_arg
umentTypes[index] != TypeUInt)) { | 178 if (index == kNotFound || (m_argumentTypes[index] != TypeInt && m_ar
gumentTypes[index] != TypeUInt)) { |
| 179 ASSERT_NOT_REACHED(); | 179 ASSERT_NOT_REACHED(); |
| 180 return 0; | 180 return 0; |
| 181 } | 181 } |
| 182 return reinterpret_cast<const TraceValueUnion*>(m_argumentValues + i
ndex)->m_int; | 182 return reinterpret_cast<const TraceValueUnion*>(m_argumentValues + i
ndex)->m_int; |
| 183 } | 183 } |
| 184 unsigned long long asUInt(const char* name) const | 184 unsigned long long asUInt(const char* name) const |
| 185 { | 185 { |
| 186 return asInt(name); | 186 return asInt(name); |
| 187 } | 187 } |
| 188 double asDouble(const char* name) const | 188 double asDouble(const char* name) const |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 | 260 |
| 261 HashMap<unsigned long long, long long> m_layerToNodeMap; | 261 HashMap<unsigned long long, long long> m_layerToNodeMap; |
| 262 unsigned long long m_layerId; | 262 unsigned long long m_layerId; |
| 263 double m_paintSetupStart; | 263 double m_paintSetupStart; |
| 264 double m_paintSetupEnd; | 264 double m_paintSetupEnd; |
| 265 }; | 265 }; |
| 266 | 266 |
| 267 } // namespace WebCore | 267 } // namespace WebCore |
| 268 | 268 |
| 269 #endif // !defined(TimelineTraceEventProcessor_h) | 269 #endif // !defined(TimelineTraceEventProcessor_h) |
| OLD | NEW |