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/memory_dump_manager.h" |
15 #include "base/trace_event/trace_event.h" | 15 #include "base/trace_event/trace_event.h" |
16 #include "cc/output/managed_memory_policy.h" | 16 #include "cc/output/managed_memory_policy.h" |
17 #include "cc/output/output_surface_client.h" | 17 #include "cc/output/output_surface_client.h" |
| 18 #include "cc/output/output_surface_frame.h" |
18 #include "gpu/GLES2/gl2extchromium.h" | 19 #include "gpu/GLES2/gl2extchromium.h" |
19 #include "gpu/command_buffer/client/context_support.h" | 20 #include "gpu/command_buffer/client/context_support.h" |
20 #include "gpu/command_buffer/client/gles2_interface.h" | 21 #include "gpu/command_buffer/client/gles2_interface.h" |
21 #include "third_party/skia/include/core/SkTraceMemoryDump.h" | 22 #include "third_party/skia/include/core/SkTraceMemoryDump.h" |
22 #include "third_party/skia/include/gpu/GrContext.h" | 23 #include "third_party/skia/include/gpu/GrContext.h" |
23 #include "ui/gfx/geometry/rect.h" | 24 #include "ui/gfx/geometry/rect.h" |
24 #include "ui/gfx/geometry/size.h" | 25 #include "ui/gfx/geometry/size.h" |
25 #include "ui/gl/trace_util.h" | 26 #include "ui/gl/trace_util.h" |
26 | 27 |
27 class SkDiscardableMemory; | 28 class SkDiscardableMemory; |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 } | 232 } |
232 return true; | 233 return true; |
233 } | 234 } |
234 | 235 |
235 void OutputSurface::DidLoseOutputSurface() { | 236 void OutputSurface::DidLoseOutputSurface() { |
236 TRACE_EVENT0("cc", "OutputSurface::DidLoseOutputSurface"); | 237 TRACE_EVENT0("cc", "OutputSurface::DidLoseOutputSurface"); |
237 client_->DidLoseOutputSurface(); | 238 client_->DidLoseOutputSurface(); |
238 } | 239 } |
239 | 240 |
240 } // namespace cc | 241 } // namespace cc |
OLD | NEW |