Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(441)

Side by Side Diff: content/browser/compositor/delegated_frame_host.cc

Issue 264373004: Return has value, in function returning void. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698