OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This file contains the implementation of the command buffer helper class. | 5 // This file contains the implementation of the command buffer helper class. |
6 | 6 |
7 #include "gpu/command_buffer/client/cmd_buffer_helper.h" | 7 #include "gpu/command_buffer/client/cmd_buffer_helper.h" |
8 | 8 |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <algorithm> | 11 #include <algorithm> |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
14 #include "base/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
16 #include "base/trace_event/memory_allocator_dump.h" | 16 #include "base/trace_event/memory_allocator_dump.h" |
17 #include "base/trace_event/memory_dump_manager.h" | 17 #include "base/trace_event/memory_dump_manager.h" |
18 #include "base/trace_event/process_memory_dump.h" | 18 #include "base/trace_event/process_memory_dump.h" |
19 #include "base/trace_event/trace_event.h" | 19 #include "base/trace_event/trace_event.h" |
20 #include "gpu/command_buffer/common/buffer.h" | 20 #include "gpu/command_buffer/common/buffer.h" |
21 #include "gpu/command_buffer/common/command_buffer.h" | 21 #include "gpu/command_buffer/common/command_buffer.h" |
22 #include "gpu/command_buffer/common/constants.h" | 22 #include "gpu/command_buffer/common/constants.h" |
23 | 23 |
24 namespace gpu { | 24 namespace gpu { |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 GetTotalFreeEntriesNoWaiting() * sizeof(CommandBufferEntry)); | 358 GetTotalFreeEntriesNoWaiting() * sizeof(CommandBufferEntry)); |
359 auto guid = GetBufferGUIDForTracing(tracing_process_id, ring_buffer_id_); | 359 auto guid = GetBufferGUIDForTracing(tracing_process_id, ring_buffer_id_); |
360 const int kImportance = 2; | 360 const int kImportance = 2; |
361 pmd->CreateSharedGlobalAllocatorDump(guid); | 361 pmd->CreateSharedGlobalAllocatorDump(guid); |
362 pmd->AddOwnershipEdge(dump->guid(), guid, kImportance); | 362 pmd->AddOwnershipEdge(dump->guid(), guid, kImportance); |
363 | 363 |
364 return true; | 364 return true; |
365 } | 365 } |
366 | 366 |
367 } // namespace gpu | 367 } // namespace gpu |
OLD | NEW |