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

Side by Side Diff: skia/ext/skia_memory_dump_provider.h

Issue 1253403002: [tracing] Adding Skia memory dump provider with cache totals (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits. Created 5 years, 4 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef SKIA_EXT_SKIA_MEMORY_DUMP_PROVIDER_H_
6 #define SKIA_EXT_SKIA_MEMORY_DUMP_PROVIDER_H_
7
8 #include "SkPreConfig.h"
9 #include "base/memory/singleton.h"
10 #include "base/trace_event/memory_dump_provider.h"
11
12 namespace skia {
13
14 class SK_API SkiaMemoryDumpProvider
petrcermak 2015/07/27 15:45:39 It might be worth adding a short unittest (not sur
ssid 2015/07/27 16:21:57 Done.
15 : public base::trace_event::MemoryDumpProvider {
16 public:
17 static SkiaMemoryDumpProvider* GetInstance();
18
19 // base::trace_event::MemoryDumpProvider implementation:
20 bool OnMemoryDump(
21 base::trace_event::ProcessMemoryDump* process_memory_dump) override;
22
23 private:
24 friend struct DefaultSingletonTraits<SkiaMemoryDumpProvider>;
25
26 SkiaMemoryDumpProvider();
27 ~SkiaMemoryDumpProvider() override;
28
29 DISALLOW_COPY_AND_ASSIGN(SkiaMemoryDumpProvider);
30 };
31
32 } // namespace skia
33
34 #endif // SKIA_EXT_SKIA_MEMORY_DUMP_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698