| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/trace_event/memory_dump_request_args.h" | 13 #include "base/trace_event/memory_dump_request_args.h" |
| 14 #include "third_party/skia/include/core/SkTraceMemoryDump.h" | 14 #include "third_party/skia/include/core/SkTraceMemoryDump.h" |
| 15 | 15 |
| 16 namespace base { | 16 namespace base { |
| 17 namespace trace_event { | 17 namespace trace_event { |
| 18 class MemoryAllocatorDump; | |
| 19 class ProcessMemoryDump; | 18 class ProcessMemoryDump; |
| 20 } | 19 } |
| 21 } | 20 } |
| 22 | 21 |
| 23 namespace skia { | 22 namespace skia { |
| 24 | 23 |
| 25 class SK_API SkiaTraceMemoryDumpImpl : public SkTraceMemoryDump { | 24 class SK_API SkiaTraceMemoryDumpImpl : public SkTraceMemoryDump { |
| 26 public: | 25 public: |
| 27 // This should never outlive the OnMemoryDump call since the | 26 // This should never outlive the OnMemoryDump call since the |
| 28 // ProcessMemoryDump is valid only in that timeframe. Optional | 27 // ProcessMemoryDump is valid only in that timeframe. Optional |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 63 |
| 65 // Stores the level of detail for the current dump. | 64 // Stores the level of detail for the current dump. |
| 66 LevelOfDetail request_level_; | 65 LevelOfDetail request_level_; |
| 67 | 66 |
| 68 DISALLOW_COPY_AND_ASSIGN(SkiaTraceMemoryDumpImpl); | 67 DISALLOW_COPY_AND_ASSIGN(SkiaTraceMemoryDumpImpl); |
| 69 }; | 68 }; |
| 70 | 69 |
| 71 } // namespace skia | 70 } // namespace skia |
| 72 | 71 |
| 73 #endif // SKIA_EXT_SK_TRACE_MEMORY_DUMP_CHROME_H_ | 72 #endif // SKIA_EXT_SK_TRACE_MEMORY_DUMP_CHROME_H_ |
| OLD | NEW |