OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 SKIA_EXT_SK_TRACE_MEMORY_DUMP_CHROME_H_ | 5 #ifndef SKIA_EXT_SK_TRACE_MEMORY_DUMP_CHROME_H_ |
6 #define SKIA_EXT_SK_TRACE_MEMORY_DUMP_CHROME_H_ | 6 #define SKIA_EXT_SK_TRACE_MEMORY_DUMP_CHROME_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/trace_event/memory_dump_request_args.h" | 12 #include "base/trace_event/memory_dump_request_args.h" |
13 #include "third_party/skia/include/core/SkTraceMemoryDump.h" | 13 #include "third_party/skia/include/core/SkTraceMemoryDump.h" |
14 | 14 |
15 namespace base { | 15 namespace base { |
16 namespace trace_event { | 16 namespace trace_event { |
17 class MemoryAllocatorDump; | 17 class MemoryAllocatorDump; |
18 class ProcessMemoryDump; | 18 class ProcessMemoryDump; |
19 } | 19 } |
20 } | 20 } |
21 | 21 |
22 namespace skia { | 22 namespace skia { |
23 | 23 |
24 class SkTraceMemoryDump_Chrome : public SkTraceMemoryDump { | 24 class SK_API SkTraceMemoryDump_Chrome : public SkTraceMemoryDump { |
25 public: | 25 public: |
26 // This should never outlive the OnMemoryDump call since the | 26 // This should never outlive the OnMemoryDump call since the |
27 // ProcessMemoryDump is valid only in that timeframe. Optional | 27 // ProcessMemoryDump is valid only in that timeframe. Optional |
28 // |dump_name_prefix| argument specifies the prefix appended to the dump | 28 // |dump_name_prefix| argument specifies the prefix appended to the dump |
29 // name skia provides. By default it is taken as empty string. | 29 // name skia provides. By default it is taken as empty string. |
30 SkTraceMemoryDump_Chrome( | 30 SkTraceMemoryDump_Chrome( |
31 base::trace_event::MemoryDumpLevelOfDetail level_of_detail, | 31 base::trace_event::MemoryDumpLevelOfDetail level_of_detail, |
32 base::trace_event::ProcessMemoryDump* process_memory_dump); | 32 base::trace_event::ProcessMemoryDump* process_memory_dump); |
33 | 33 |
34 SkTraceMemoryDump_Chrome( | 34 SkTraceMemoryDump_Chrome( |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 // Stores the level of detail for the current dump. | 68 // Stores the level of detail for the current dump. |
69 LevelOfDetail request_level_; | 69 LevelOfDetail request_level_; |
70 | 70 |
71 DISALLOW_COPY_AND_ASSIGN(SkTraceMemoryDump_Chrome); | 71 DISALLOW_COPY_AND_ASSIGN(SkTraceMemoryDump_Chrome); |
72 }; | 72 }; |
73 | 73 |
74 } // namespace skia | 74 } // namespace skia |
75 | 75 |
76 #endif // SKIA_EXT_SK_TRACE_MEMORY_DUMP_CHROME_H_ | 76 #endif // SKIA_EXT_SK_TRACE_MEMORY_DUMP_CHROME_H_ |
OLD | NEW |