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 #include "gpu/command_buffer/service/buffer_manager.h" | 5 #include "gpu/command_buffer/service/buffer_manager.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <limits> | 9 #include <limits> |
10 | 10 |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
13 #include "base/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
14 #include "base/trace_event/memory_dump_manager.h" | 14 #include "base/trace_event/memory_dump_manager.h" |
15 #include "base/trace_event/trace_event.h" | 15 #include "base/trace_event/trace_event.h" |
16 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 16 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
17 #include "gpu/command_buffer/service/context_state.h" | 17 #include "gpu/command_buffer/service/context_state.h" |
18 #include "gpu/command_buffer/service/error_state.h" | 18 #include "gpu/command_buffer/service/error_state.h" |
19 #include "gpu/command_buffer/service/feature_info.h" | 19 #include "gpu/command_buffer/service/feature_info.h" |
20 #include "gpu/command_buffer/service/memory_tracking.h" | 20 #include "gpu/command_buffer/service/memory_tracking.h" |
21 #include "gpu/command_buffer/service/transform_feedback_manager.h" | 21 #include "gpu/command_buffer/service/transform_feedback_manager.h" |
22 #include "ui/gl/gl_bindings.h" | 22 #include "ui/gl/gl_bindings.h" |
23 #include "ui/gl/gl_implementation.h" | 23 #include "ui/gl/gl_implementation.h" |
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
654 auto guid = gfx::GetGLBufferGUIDForTracing( | 654 auto guid = gfx::GetGLBufferGUIDForTracing( |
655 memory_tracker_->ShareGroupTracingGUID(), client_buffer_id); | 655 memory_tracker_->ShareGroupTracingGUID(), client_buffer_id); |
656 pmd->CreateSharedGlobalAllocatorDump(guid); | 656 pmd->CreateSharedGlobalAllocatorDump(guid); |
657 pmd->AddOwnershipEdge(dump->guid(), guid); | 657 pmd->AddOwnershipEdge(dump->guid(), guid); |
658 } | 658 } |
659 return true; | 659 return true; |
660 } | 660 } |
661 | 661 |
662 } // namespace gles2 | 662 } // namespace gles2 |
663 } // namespace gpu | 663 } // namespace gpu |
OLD | NEW |