OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 WEBKIT_GLUE_WEBKIT_GLUE_H_ | 5 #ifndef WEBKIT_GLUE_WEBKIT_GLUE_H_ |
6 #define WEBKIT_GLUE_WEBKIT_GLUE_H_ | 6 #define WEBKIT_GLUE_WEBKIT_GLUE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 WebKit::WebFileInfo* web_file_info); | 39 WebKit::WebFileInfo* web_file_info); |
40 | 40 |
41 // Returns a WebCanvas pointer associated with the given Skia canvas. | 41 // Returns a WebCanvas pointer associated with the given Skia canvas. |
42 WEBKIT_GLUE_EXPORT WebKit::WebCanvas* ToWebCanvas(SkCanvas*); | 42 WEBKIT_GLUE_EXPORT WebKit::WebCanvas* ToWebCanvas(SkCanvas*); |
43 | 43 |
44 // Returns the number of currently-active glyph pages this process is using. | 44 // Returns the number of currently-active glyph pages this process is using. |
45 // There can be many such pages (maps of 256 character -> glyph) so this is | 45 // There can be many such pages (maps of 256 character -> glyph) so this is |
46 // used to get memory usage statistics. | 46 // used to get memory usage statistics. |
47 WEBKIT_GLUE_EXPORT int GetGlyphPageCount(); | 47 WEBKIT_GLUE_EXPORT int GetGlyphPageCount(); |
48 | 48 |
49 // Returns an estimate of the memory usage of the renderer process. Different | |
50 // platforms implement this function differently, and count in different | |
51 // allocations. Results are not comparable across platforms. The estimate is | |
52 // computed inside the sandbox and thus its not always accurate. | |
53 WEBKIT_GLUE_EXPORT size_t MemoryUsageKB(); | |
54 | |
55 } // namespace webkit_glue | 49 } // namespace webkit_glue |
56 | 50 |
57 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ | 51 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ |
OLD | NEW |