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

Side by Side Diff: cc/resources/transferable_resource.cc

Issue 2174203002: OnDrawHardware() implementation with async messages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Further changes. Created 4 years, 4 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "cc/resources/returned_resource.h" 5 #include "cc/resources/returned_resource.h"
6 #include "cc/resources/transferable_resource.h" 6 #include "cc/resources/transferable_resource.h"
7 7
8 namespace cc { 8 namespace cc {
9 9
10 TransferableResource::TransferableResource() 10 TransferableResource::TransferableResource()
(...skipping 15 matching lines...) Expand all
26 returned.id = id; 26 returned.id = id;
27 returned.sync_token = mailbox_holder.sync_token; 27 returned.sync_token = mailbox_holder.sync_token;
28 returned.count = 1; 28 returned.count = 1;
29 return returned; 29 return returned;
30 } 30 }
31 31
32 // static 32 // static
33 void TransferableResource::ReturnResources( 33 void TransferableResource::ReturnResources(
34 const TransferableResourceArray& input, 34 const TransferableResourceArray& input,
35 ReturnedResourceArray* output) { 35 ReturnedResourceArray* output) {
36 DCHECK(input.begin());
36 for (TransferableResourceArray::const_iterator it = input.begin(); 37 for (TransferableResourceArray::const_iterator it = input.begin();
37 it != input.end(); ++it) 38 it != input.end(); ++it)
38 output->push_back(it->ToReturnedResource()); 39 output->push_back(it->ToReturnedResource());
39 } 40 }
40 41
41 } // namespace cc 42 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698