GPU workaround to simulate Out of Memory errors with large textures
[chromium-blink-merge.git] / cc / debug / traced_value.h
blob34e79a7a06237c0dfe206f949786d7484d460d0d
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
3 // found in the LICENSE file.
5 #ifndef CC_DEBUG_TRACED_VALUE_H_
6 #define CC_DEBUG_TRACED_VALUE_H_
8 namespace base {
9 namespace trace_event {
10 class TracedValue;
14 namespace cc {
16 class TracedValue {
17 public:
18 static void AppendIDRef(const void* id,
19 base::trace_event::TracedValue* array);
20 static void SetIDRef(const void* id,
21 base::trace_event::TracedValue* dict,
22 const char* name);
23 static void MakeDictIntoImplicitSnapshot(base::trace_event::TracedValue* dict,
24 const char* object_name,
25 const void* id);
26 static void MakeDictIntoImplicitSnapshotWithCategory(
27 const char* category,
28 base::trace_event::TracedValue* dict,
29 const char* object_name,
30 const void* id);
31 static void MakeDictIntoImplicitSnapshotWithCategory(
32 const char* category,
33 base::trace_event::TracedValue* dict,
34 const char* object_base_type_name,
35 const char* object_name,
36 const void* id);
39 } // namespace cc
41 #endif // CC_DEBUG_TRACED_VALUE_H_