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/renderbuffer_manager.h" | 5 #include "gpu/command_buffer/service/renderbuffer_manager.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" |
11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
12 #include "base/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
13 #include "base/trace_event/memory_dump_manager.h" | 13 #include "base/trace_event/memory_dump_manager.h" |
14 #include "base/trace_event/trace_event.h" | 14 #include "base/trace_event/trace_event.h" |
15 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 15 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
16 #include "gpu/command_buffer/service/feature_info.h" | 16 #include "gpu/command_buffer/service/feature_info.h" |
17 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 17 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
18 #include "gpu/command_buffer/service/memory_tracking.h" | 18 #include "gpu/command_buffer/service/memory_tracking.h" |
19 #include "ui/gl/gl_implementation.h" | 19 #include "ui/gl/gl_implementation.h" |
20 #include "ui/gl/gl_version_info.h" | 20 #include "ui/gl/gl_version_info.h" |
21 #include "ui/gl/trace_util.h" | 21 #include "ui/gl/trace_util.h" |
22 | 22 |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 auto guid = gfx::GetGLRenderbufferGUIDForTracing( | 267 auto guid = gfx::GetGLRenderbufferGUIDForTracing( |
268 memory_tracker_->ShareGroupTracingGUID(), client_renderbuffer_id); | 268 memory_tracker_->ShareGroupTracingGUID(), client_renderbuffer_id); |
269 pmd->CreateSharedGlobalAllocatorDump(guid); | 269 pmd->CreateSharedGlobalAllocatorDump(guid); |
270 pmd->AddOwnershipEdge(dump->guid(), guid); | 270 pmd->AddOwnershipEdge(dump->guid(), guid); |
271 } | 271 } |
272 return true; | 272 return true; |
273 } | 273 } |
274 | 274 |
275 } // namespace gles2 | 275 } // namespace gles2 |
276 } // namespace gpu | 276 } // namespace gpu |
OLD | NEW |