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" |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 //////////////////////////////////////////////////////////////////////////////// | 23 //////////////////////////////////////////////////////////////////////////////// |
24 // DelegatedFrameHostClient | 24 // DelegatedFrameHostClient |
25 | 25 |
26 bool DelegatedFrameHostClient::ShouldCreateResizeLock() { | 26 bool DelegatedFrameHostClient::ShouldCreateResizeLock() { |
27 return GetDelegatedFrameHost()->ShouldCreateResizeLock(); | 27 return GetDelegatedFrameHost()->ShouldCreateResizeLock(); |
28 } | 28 } |
29 | 29 |
30 void DelegatedFrameHostClient::RequestCopyOfOutput( | 30 void DelegatedFrameHostClient::RequestCopyOfOutput( |
31 scoped_ptr<cc::CopyOutputRequest> request) { | 31 scoped_ptr<cc::CopyOutputRequest> request) { |
32 return GetDelegatedFrameHost()->RequestCopyOfOutput(request.Pass()); | 32 GetDelegatedFrameHost()->RequestCopyOfOutput(request.Pass()); |
33 } | 33 } |
34 | 34 |
35 //////////////////////////////////////////////////////////////////////////////// | 35 //////////////////////////////////////////////////////////////////////////////// |
36 // DelegatedFrameHost | 36 // DelegatedFrameHost |
37 | 37 |
38 DelegatedFrameHost::DelegatedFrameHost(DelegatedFrameHostClient* client) | 38 DelegatedFrameHost::DelegatedFrameHost(DelegatedFrameHostClient* client) |
39 : client_(client), | 39 : client_(client), |
40 last_output_surface_id_(0), | 40 last_output_surface_id_(0), |
41 pending_delegated_ack_count_(0), | 41 pending_delegated_ack_count_(0), |
42 skipped_frames_(false), | 42 skipped_frames_(false), |
(...skipping 824 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 |