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

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

Issue 1379863002: Fix SK_API macro in SkTraceMemoryDump_Chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add_sub_chrome
Patch Set: Created 5 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698