| 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 #include "cc/resources/shared_bitmap.h" | 5 #include "cc/resources/shared_bitmap.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 return id; | 70 return id; |
| 71 } | 71 } |
| 72 | 72 |
| 73 base::trace_event::MemoryAllocatorDumpGuid GetSharedBitmapGUIDForTracing( | 73 base::trace_event::MemoryAllocatorDumpGuid GetSharedBitmapGUIDForTracing( |
| 74 const SharedBitmapId& bitmap_id) { | 74 const SharedBitmapId& bitmap_id) { |
| 75 auto bitmap_id_hex = base::HexEncode(bitmap_id.name, sizeof(bitmap_id.name)); | 75 auto bitmap_id_hex = base::HexEncode(bitmap_id.name, sizeof(bitmap_id.name)); |
| 76 return base::trace_event::MemoryAllocatorDumpGuid( | 76 return base::trace_event::MemoryAllocatorDumpGuid( |
| 77 base::StringPrintf("sharedbitmap-x-process/%s", bitmap_id_hex.c_str())); | 77 base::StringPrintf("sharedbitmap-x-process/%s", bitmap_id_hex.c_str())); |
| 78 } | 78 } |
| 79 | 79 |
| 80 base::SharedMemory* SharedBitmap::GetSharedMemory() const { |
| 81 return nullptr; |
| 82 } |
| 83 |
| 80 } // namespace cc | 84 } // namespace cc |
| OLD | NEW |