| 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 "content/browser/renderer_host/render_widget_host_view_aura.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "cc/output/compositor_frame.h" | 12 #include "cc/output/compositor_frame.h" |
| 13 #include "cc/output/compositor_frame_metadata.h" | 13 #include "cc/output/compositor_frame_metadata.h" |
| 14 #include "cc/output/copy_output_request.h" | 14 #include "cc/output/copy_output_request.h" |
| 15 #include "cc/output/gl_frame_data.h" | 15 #include "cc/output/gl_frame_data.h" |
| 16 #include "content/browser/aura/resize_lock.h" | |
| 17 #include "content/browser/browser_thread_impl.h" | 16 #include "content/browser/browser_thread_impl.h" |
| 17 #include "content/browser/compositor/resize_lock.h" |
| 18 #include "content/browser/renderer_host/render_widget_host_delegate.h" | 18 #include "content/browser/renderer_host/render_widget_host_delegate.h" |
| 19 #include "content/browser/renderer_host/render_widget_host_impl.h" | 19 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 20 #include "content/common/gpu/gpu_messages.h" | 20 #include "content/common/gpu/gpu_messages.h" |
| 21 #include "content/common/input_messages.h" | 21 #include "content/common/input_messages.h" |
| 22 #include "content/common/view_messages.h" | 22 #include "content/common/view_messages.h" |
| 23 #include "content/port/browser/render_widget_host_view_frame_subscriber.h" | 23 #include "content/port/browser/render_widget_host_view_frame_subscriber.h" |
| 24 #include "content/public/browser/render_widget_host_view.h" | 24 #include "content/public/browser/render_widget_host_view.h" |
| 25 #include "content/public/test/mock_render_process_host.h" | 25 #include "content/public/test/mock_render_process_host.h" |
| 26 #include "content/public/test/test_browser_context.h" | 26 #include "content/public/test/test_browser_context.h" |
| 27 #include "ipc/ipc_test_sink.h" | 27 #include "ipc/ipc_test_sink.h" |
| (...skipping 1329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1357 | 1357 |
| 1358 // Because the copy request callback may be holding state within it, that | 1358 // Because the copy request callback may be holding state within it, that |
| 1359 // state must handle the RWHVA and ImageTransportFactory going away before the | 1359 // state must handle the RWHVA and ImageTransportFactory going away before the |
| 1360 // callback is called. This test passes if it does not crash as a result of | 1360 // callback is called. This test passes if it does not crash as a result of |
| 1361 // these things being destroyed. | 1361 // these things being destroyed. |
| 1362 EXPECT_EQ(2, callback_count_); | 1362 EXPECT_EQ(2, callback_count_); |
| 1363 EXPECT_FALSE(result_); | 1363 EXPECT_FALSE(result_); |
| 1364 } | 1364 } |
| 1365 | 1365 |
| 1366 } // namespace content | 1366 } // namespace content |
| OLD | NEW |