| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "cc/resources/resource_provider.h" | 5 #include "cc/resources/resource_provider.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| 11 #include <limits> | 11 #include <limits> |
| 12 #include <unordered_map> | 12 #include <unordered_map> |
| 13 | 13 |
| 14 #include "base/atomic_sequence_num.h" | 14 #include "base/atomic_sequence_num.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/metrics/histogram.h" | 16 #include "base/metrics/histogram.h" |
| 17 #include "base/numerics/safe_math.h" | 17 #include "base/numerics/safe_math.h" |
| 18 #include "base/stl_util.h" | 18 #include "base/stl_util.h" |
| 19 #include "base/strings/string_split.h" | 19 #include "base/strings/string_split.h" |
| 20 #include "base/strings/string_util.h" | 20 #include "base/strings/string_util.h" |
| 21 #include "base/strings/stringprintf.h" | 21 #include "base/strings/stringprintf.h" |
| 22 #include "base/thread_task_runner_handle.h" | 22 #include "base/threading/thread_task_runner_handle.h" |
| 23 #include "base/trace_event/memory_dump_manager.h" | 23 #include "base/trace_event/memory_dump_manager.h" |
| 24 #include "base/trace_event/trace_event.h" | 24 #include "base/trace_event/trace_event.h" |
| 25 #include "cc/resources/platform_color.h" | 25 #include "cc/resources/platform_color.h" |
| 26 #include "cc/resources/resource_util.h" | 26 #include "cc/resources/resource_util.h" |
| 27 #include "cc/resources/returned_resource.h" | 27 #include "cc/resources/returned_resource.h" |
| 28 #include "cc/resources/shared_bitmap_manager.h" | 28 #include "cc/resources/shared_bitmap_manager.h" |
| 29 #include "cc/resources/transferable_resource.h" | 29 #include "cc/resources/transferable_resource.h" |
| 30 #include "gpu/GLES2/gl2extchromium.h" | 30 #include "gpu/GLES2/gl2extchromium.h" |
| 31 #include "gpu/command_buffer/client/context_support.h" | 31 #include "gpu/command_buffer/client/context_support.h" |
| 32 #include "gpu/command_buffer/client/gles2_interface.h" | 32 #include "gpu/command_buffer/client/gles2_interface.h" |
| (...skipping 1927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1960 | 1960 |
| 1961 const int kImportance = 2; | 1961 const int kImportance = 2; |
| 1962 pmd->CreateSharedGlobalAllocatorDump(guid); | 1962 pmd->CreateSharedGlobalAllocatorDump(guid); |
| 1963 pmd->AddOwnershipEdge(dump->guid(), guid, kImportance); | 1963 pmd->AddOwnershipEdge(dump->guid(), guid, kImportance); |
| 1964 } | 1964 } |
| 1965 | 1965 |
| 1966 return true; | 1966 return true; |
| 1967 } | 1967 } |
| 1968 | 1968 |
| 1969 } // namespace cc | 1969 } // namespace cc |
| OLD | NEW |