| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/compositor/delegated_frame_host.h" | 5 #include "content/browser/compositor/delegated_frame_host.h" |
| 6 | 6 |
| 7 #include "base/callback_helpers.h" | 7 #include "base/callback_helpers.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "cc/output/compositor_frame.h" | 9 #include "cc/output/compositor_frame.h" |
| 10 #include "cc/output/compositor_frame_ack.h" | 10 #include "cc/output/compositor_frame_ack.h" |
| 11 #include "cc/output/copy_output_request.h" | 11 #include "cc/output/copy_output_request.h" |
| 12 #include "cc/resources/single_release_callback.h" | 12 #include "cc/resources/single_release_callback.h" |
| 13 #include "cc/resources/texture_mailbox.h" | 13 #include "cc/resources/texture_mailbox.h" |
| 14 #include "content/browser/compositor/resize_lock.h" | 14 #include "content/browser/compositor/resize_lock.h" |
| 15 #include "content/port/browser/render_widget_host_view_frame_subscriber.h" | 15 #include "content/public/browser/render_widget_host_view_frame_subscriber.h" |
| 16 #include "content/public/common/content_switches.h" | 16 #include "content/public/common/content_switches.h" |
| 17 #include "media/base/video_frame.h" | 17 #include "media/base/video_frame.h" |
| 18 #include "media/base/video_util.h" | 18 #include "media/base/video_util.h" |
| 19 #include "skia/ext/image_operations.h" | 19 #include "skia/ext/image_operations.h" |
| 20 | 20 |
| 21 namespace content { | 21 namespace content { |
| 22 | 22 |
| 23 //////////////////////////////////////////////////////////////////////////////// | 23 //////////////////////////////////////////////////////////////////////////////// |
| 24 // DelegatedFrameHostClient | 24 // DelegatedFrameHostClient |
| 25 | 25 |
| (...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 867 // that should keep our frame. old_layer will be returned to the | 867 // that should keep our frame. old_layer will be returned to the |
| 868 // RecreateLayer caller, and should have a copy. | 868 // RecreateLayer caller, and should have a copy. |
| 869 if (frame_provider_.get()) { | 869 if (frame_provider_.get()) { |
| 870 new_layer->SetShowDelegatedContent(frame_provider_.get(), | 870 new_layer->SetShowDelegatedContent(frame_provider_.get(), |
| 871 current_frame_size_in_dip_); | 871 current_frame_size_in_dip_); |
| 872 } | 872 } |
| 873 } | 873 } |
| 874 | 874 |
| 875 } // namespace content | 875 } // namespace content |
| 876 | 876 |
| OLD | NEW |