| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "content/browser/media/capture/aura_window_capture_machine.h" | 5 #include "content/browser/media/capture/aura_window_capture_machine.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
| 12 #include "base/timer/timer.h" | 12 #include "base/timer/timer.h" |
| 13 #include "cc/output/copy_output_request.h" | 13 #include "cc/output/copy_output_request.h" |
| 14 #include "cc/output/copy_output_result.h" | 14 #include "cc/output/copy_output_result.h" |
| 15 #include "content/browser/compositor/gl_helper.h" |
| 15 #include "content/browser/compositor/image_transport_factory.h" | 16 #include "content/browser/compositor/image_transport_factory.h" |
| 16 #include "content/browser/media/capture/desktop_capture_device_uma_types.h" | 17 #include "content/browser/media/capture/desktop_capture_device_uma_types.h" |
| 17 #include "content/common/gpu/client/gl_helper.h" | |
| 18 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
| 19 #include "content/public/browser/power_save_blocker.h" | 19 #include "content/public/browser/power_save_blocker.h" |
| 20 #include "media/base/video_capture_types.h" | 20 #include "media/base/video_capture_types.h" |
| 21 #include "media/base/video_util.h" | 21 #include "media/base/video_util.h" |
| 22 #include "media/capture/content/thread_safe_capture_oracle.h" | 22 #include "media/capture/content/thread_safe_capture_oracle.h" |
| 23 #include "media/capture/content/video_capture_oracle.h" | 23 #include "media/capture/content/video_capture_oracle.h" |
| 24 #include "skia/ext/image_operations.h" | 24 #include "skia/ext/image_operations.h" |
| 25 #include "third_party/skia/include/core/SkBitmap.h" | 25 #include "third_party/skia/include/core/SkBitmap.h" |
| 26 #include "ui/aura/client/screen_position_client.h" | 26 #include "ui/aura/client/screen_position_client.h" |
| 27 #include "ui/aura/env.h" | 27 #include "ui/aura/env.h" |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 // TODO(miu): The CopyOutputRequest should be made earlier, at WillCommit(). | 360 // TODO(miu): The CopyOutputRequest should be made earlier, at WillCommit(). |
| 361 // http://crbug.com/492839 | 361 // http://crbug.com/492839 |
| 362 BrowserThread::PostTask( | 362 BrowserThread::PostTask( |
| 363 BrowserThread::UI, | 363 BrowserThread::UI, |
| 364 FROM_HERE, | 364 FROM_HERE, |
| 365 base::Bind(&AuraWindowCaptureMachine::Capture, weak_factory_.GetWeakPtr(), | 365 base::Bind(&AuraWindowCaptureMachine::Capture, weak_factory_.GetWeakPtr(), |
| 366 true)); | 366 true)); |
| 367 } | 367 } |
| 368 | 368 |
| 369 } // namespace content | 369 } // namespace content |
| OLD | NEW |