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

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

Issue 1533773002: Delete CC. (Closed) Base URL: git@github.com:domokit/mojo.git@cl-2e
Patch Set: rebase Created 5 years 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 | « cc/resources/transferable_resource.h ('k') | cc/scheduler/begin_frame_source.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "cc/resources/returned_resource.h"
6 #include "cc/resources/transferable_resource.h"
7
8 namespace cc {
9
10 TransferableResource::TransferableResource()
11 : id(0),
12 format(RGBA_8888),
13 filter(0),
14 is_repeated(false),
15 is_software(false),
16 allow_overlay(false) {
17 }
18
19 TransferableResource::~TransferableResource() {
20 }
21
22 ReturnedResource TransferableResource::ToReturnedResource() const {
23 ReturnedResource returned;
24 returned.id = id;
25 returned.sync_point = mailbox_holder.sync_point;
26 returned.count = 1;
27 return returned;
28 }
29
30 // static
31 void TransferableResource::ReturnResources(
32 const TransferableResourceArray& input,
33 ReturnedResourceArray* output) {
34 for (TransferableResourceArray::const_iterator it = input.begin();
35 it != input.end(); ++it)
36 output->push_back(it->ToReturnedResource());
37 }
38
39 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/transferable_resource.h ('k') | cc/scheduler/begin_frame_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698