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

Side by Side Diff: cc/transferable_resource.cc

Issue 11316128: Send compositor frame IPC with metadata. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix compile errors on mac/win Created 8 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/transferable_resource.h ('k') | content/browser/android/content_startup_flags.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 "base/logging.h" 5 #include "base/logging.h"
6 #include "cc/transferable_resource.h" 6 #include "cc/transferable_resource.h"
7 7
8 namespace cc { 8 namespace cc {
9 9
10 Mailbox::Mailbox() { 10 Mailbox::Mailbox() {
11 memset(name, 0, sizeof(name)); 11 memset(name, 0, sizeof(name));
12 } 12 }
13 13
14 bool Mailbox::isZero() const { 14 bool Mailbox::isZero() const {
15 for (int i = 0; i < arraysize(name); ++i) { 15 for (int i = 0; i < arraysize(name); ++i) {
16 if (name[i]) 16 if (name[i])
17 return false; 17 return false;
18 } 18 }
19 return true; 19 return true;
20 } 20 }
21 21
22 void Mailbox::setName(const GLbyte* n) { 22 void Mailbox::setName(const int8* n) {
23 DCHECK(isZero() || !memcmp(name, n, sizeof(name))); 23 DCHECK(isZero() || !memcmp(name, n, sizeof(name)));
24 memcpy(name, n, sizeof(name)); 24 memcpy(name, n, sizeof(name));
25 } 25 }
26 26
27 TransferableResource::TransferableResource() 27 TransferableResource::TransferableResource()
28 : id(0) 28 : id(0)
29 , format(0) 29 , format(0)
30 , filter(0) { 30 , filter(0) {
31 } 31 }
32 32
33 TransferableResource::~TransferableResource() { 33 TransferableResource::~TransferableResource() {
34 } 34 }
35 35
36 TransferableResourceList::TransferableResourceList() 36 TransferableResourceList::TransferableResourceList()
37 : sync_point(0) { 37 : sync_point(0) {
38 } 38 }
39 39
40 TransferableResourceList::~TransferableResourceList() { 40 TransferableResourceList::~TransferableResourceList() {
41 } 41 }
42 42
43 } // namespace cc 43 } // namespace cc
OLDNEW
« no previous file with comments | « cc/transferable_resource.h ('k') | content/browser/android/content_startup_flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698