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 "ui/gl/async_pixel_transfer_delegate_idle.h" | 5 #include "ui/gl/async_pixel_transfer_delegate_idle.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/memory/shared_memory.h" |
10 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
11 #include "base/process_util.h" | 12 #include "base/process_util.h" |
12 #include "base/shared_memory.h" | |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 #include "ui/gl/gl_bindings.h" | 14 #include "ui/gl/gl_bindings.h" |
15 #include "ui/gl/gl_context.h" | 15 #include "ui/gl/gl_context.h" |
16 #include "ui/gl/gl_surface.h" | 16 #include "ui/gl/gl_surface.h" |
17 #include "ui/gl/safe_shared_memory_pool.h" | 17 #include "ui/gl/safe_shared_memory_pool.h" |
18 #include "ui/gl/scoped_make_current.h" | 18 #include "ui/gl/scoped_make_current.h" |
19 | 19 |
20 using base::SharedMemory; | 20 using base::SharedMemory; |
21 using base::SharedMemoryHandle; | 21 using base::SharedMemoryHandle; |
22 | 22 |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 tex_params.format, | 328 tex_params.format, |
329 tex_params.type, | 329 tex_params.type, |
330 data); | 330 data); |
331 } | 331 } |
332 | 332 |
333 texture_upload_count_++; | 333 texture_upload_count_++; |
334 total_texture_upload_time_ += base::TimeTicks::HighResNow() - begin_time; | 334 total_texture_upload_time_ += base::TimeTicks::HighResNow() - begin_time; |
335 } | 335 } |
336 | 336 |
337 } // namespace gfx | 337 } // namespace gfx |
OLD | NEW |