OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/output/output_surface.h" | 5 #include "cc/output/output_surface.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
13 #include "base/threading/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/trace_event.h" | 15 #include "base/trace_event/trace_event.h" |
15 #include "cc/output/managed_memory_policy.h" | 16 #include "cc/output/managed_memory_policy.h" |
16 #include "cc/output/output_surface_client.h" | 17 #include "cc/output/output_surface_client.h" |
17 #include "gpu/GLES2/gl2extchromium.h" | 18 #include "gpu/GLES2/gl2extchromium.h" |
18 #include "gpu/command_buffer/client/context_support.h" | 19 #include "gpu/command_buffer/client/context_support.h" |
19 #include "gpu/command_buffer/client/gles2_interface.h" | 20 #include "gpu/command_buffer/client/gles2_interface.h" |
20 #include "third_party/skia/include/core/SkTraceMemoryDump.h" | 21 #include "third_party/skia/include/core/SkTraceMemoryDump.h" |
21 #include "third_party/skia/include/gpu/GrContext.h" | 22 #include "third_party/skia/include/gpu/GrContext.h" |
22 #include "ui/gfx/geometry/rect.h" | 23 #include "ui/gfx/geometry/rect.h" |
23 #include "ui/gfx/geometry/size.h" | 24 #include "ui/gfx/geometry/size.h" |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 if (context_provider_.get()) { | 317 if (context_provider_.get()) { |
317 context_provider_->SetLostContextCallback( | 318 context_provider_->SetLostContextCallback( |
318 ContextProvider::LostContextCallback()); | 319 ContextProvider::LostContextCallback()); |
319 } | 320 } |
320 context_provider_ = nullptr; | 321 context_provider_ = nullptr; |
321 client_ = nullptr; | 322 client_ = nullptr; |
322 weak_ptr_factory_.InvalidateWeakPtrs(); | 323 weak_ptr_factory_.InvalidateWeakPtrs(); |
323 } | 324 } |
324 | 325 |
325 } // namespace cc | 326 } // namespace cc |
OLD | NEW |