OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 27 matching lines...) Expand all Loading... |
38 // being visible. | 38 // being visible. |
39 size_t bytesVisibleAndNearby; | 39 size_t bytesVisibleAndNearby; |
40 | 40 |
41 // The number of bytes currently allocated. | 41 // The number of bytes currently allocated. |
42 size_t bytesAllocated; | 42 size_t bytesAllocated; |
43 | 43 |
44 // Whether or not a backbuffer is currently requested (the memory usage | 44 // Whether or not a backbuffer is currently requested (the memory usage |
45 // of the buffer is known by the GPU process). | 45 // of the buffer is known by the GPU process). |
46 bool backbufferRequested; | 46 bool backbufferRequested; |
47 | 47 |
48 WebGraphicsManagedMemoryStats() | 48 WebGraphicsManagedMemoryStats() |
49 : bytesVisible(0) | 49 : bytesVisible(0) |
50 , bytesVisibleAndNearby(0) | 50 , bytesVisibleAndNearby(0) |
51 , bytesAllocated(0) | 51 , bytesAllocated(0) |
52 , backbufferRequested(0) | 52 , backbufferRequested(0) |
53 { | 53 { |
54 } | 54 } |
55 }; | 55 }; |
56 | 56 |
57 } // namespace WebKit | 57 } // namespace WebKit |
58 | 58 |
59 #endif | 59 #endif |
60 | 60 |
OLD | NEW |