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 "ui/gl/async_pixel_transfer_delegate_android.h" | 5 #include "ui/gl/async_pixel_transfer_delegate_android.h" |
6 | 6 |
7 #include <list> | 7 #include <list> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/debug/trace_event.h" | 11 #include "base/debug/trace_event.h" |
12 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/memory/shared_memory.h" |
15 #include "base/process_util.h" | 16 #include "base/process_util.h" |
16 #include "base/shared_memory.h" | |
17 #include "base/synchronization/waitable_event.h" | 17 #include "base/synchronization/waitable_event.h" |
18 #include "base/threading/thread.h" | 18 #include "base/threading/thread.h" |
19 #include "build/build_config.h" | 19 #include "build/build_config.h" |
20 #include "ui/gl/async_pixel_transfer_delegate.h" | 20 #include "ui/gl/async_pixel_transfer_delegate.h" |
21 #include "ui/gl/async_pixel_transfer_delegate_stub.h" | 21 #include "ui/gl/async_pixel_transfer_delegate_stub.h" |
22 #include "ui/gl/egl_util.h" | 22 #include "ui/gl/egl_util.h" |
23 #include "ui/gl/gl_bindings.h" | 23 #include "ui/gl/gl_bindings.h" |
24 #include "ui/gl/gl_context.h" | 24 #include "ui/gl/gl_context.h" |
25 #include "ui/gl/gl_surface_egl.h" | 25 #include "ui/gl/gl_surface_egl.h" |
26 #include "ui/gl/safe_shared_memory_pool.h" | 26 #include "ui/gl/safe_shared_memory_pool.h" |
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
897 if (texture_upload_stats_) { | 897 if (texture_upload_stats_) { |
898 texture_upload_stats_->AddUpload( | 898 texture_upload_stats_->AddUpload( |
899 base::TimeTicks::HighResNow() - begin_time); | 899 base::TimeTicks::HighResNow() - begin_time); |
900 } | 900 } |
901 | 901 |
902 DCHECK(CHECK_GL()); | 902 DCHECK(CHECK_GL()); |
903 return true; | 903 return true; |
904 } | 904 } |
905 | 905 |
906 } // namespace gfx | 906 } // namespace gfx |
OLD | NEW |