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

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

Issue 2748903002: cc: Add gfx::BufferFormat to cc::ResourceProvider::Resource. (Closed)
Patch Set: Always initialize buffer_format. Created 3 years, 9 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 | « cc/resources/transferable_resource.h ('k') | components/exo/buffer.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 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()
11 : id(0), 11 : id(0),
12 format(RGBA_8888), 12 format(RGBA_8888),
13 buffer_format(gfx::BufferFormat::RGBA_8888),
13 filter(0), 14 filter(0),
14 read_lock_fences_enabled(false), 15 read_lock_fences_enabled(false),
15 is_software(false), 16 is_software(false),
16 #if defined(OS_ANDROID) 17 #if defined(OS_ANDROID)
17 is_backed_by_surface_texture(false), 18 is_backed_by_surface_texture(false),
18 wants_promotion_hint(false), 19 wants_promotion_hint(false),
19 #endif 20 #endif
20 is_overlay_candidate(false) { 21 is_overlay_candidate(false) {
21 } 22 }
22 23
(...skipping 14 matching lines...) Expand all
37 // static 38 // static
38 void TransferableResource::ReturnResources( 39 void TransferableResource::ReturnResources(
39 const TransferableResourceArray& input, 40 const TransferableResourceArray& input,
40 ReturnedResourceArray* output) { 41 ReturnedResourceArray* output) {
41 for (TransferableResourceArray::const_iterator it = input.begin(); 42 for (TransferableResourceArray::const_iterator it = input.begin();
42 it != input.end(); ++it) 43 it != input.end(); ++it)
43 output->push_back(it->ToReturnedResource()); 44 output->push_back(it->ToReturnedResource());
44 } 45 }
45 46
46 } // namespace cc 47 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/transferable_resource.h ('k') | components/exo/buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698