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

Side by Side Diff: cc/transferable_resource.h

Issue 11358181: Use nearest neighbor filtering for non-translated quads (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Change CHECK() into DCHECK(). 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 | Annotate | Revision Log
« no previous file with comments | « cc/test/render_pass_test_common.cc ('k') | cc/transferable_resource.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 #ifndef CC_TRANSFERABLE_RESOURCE_H_ 5 #ifndef CC_TRANSFERABLE_RESOURCE_H_
6 #define CC_TRANSFERABLE_RESOURCE_H_ 6 #define CC_TRANSFERABLE_RESOURCE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "cc/cc_export.h" 10 #include "cc/cc_export.h"
11 #include "ui/gfx/size.h" 11 #include "ui/gfx/size.h"
12 #include "third_party/khronos/GLES2/gl2.h" 12 #include "third_party/khronos/GLES2/gl2.h"
13 #include "third_party/WebKit/Source/Platform/chromium/public/WebCompositorTransf erableResourceList.h" 13 #include "third_party/WebKit/Source/Platform/chromium/public/WebCompositorTransf erableResourceList.h"
14 14
15 namespace cc { 15 namespace cc {
16 16
17 struct Mailbox { 17 struct Mailbox {
18 Mailbox(); 18 Mailbox();
19 bool isZero() const; 19 bool isZero() const;
20 void setName(const GLbyte* name); 20 void setName(const GLbyte* name);
21 GLbyte name[64]; 21 GLbyte name[64];
22 }; 22 };
23 23
24 struct CC_EXPORT TransferableResource { 24 struct CC_EXPORT TransferableResource {
25 TransferableResource(); 25 TransferableResource();
26 ~TransferableResource(); 26 ~TransferableResource();
27 27
28 unsigned id; 28 unsigned id;
29 GLenum format; 29 GLenum format;
30 GLenum filter;
30 gfx::Size size; 31 gfx::Size size;
31 Mailbox mailbox; 32 Mailbox mailbox;
32 }; 33 };
33 34
34 typedef std::vector<TransferableResource> TransferableResourceArray; 35 typedef std::vector<TransferableResource> TransferableResourceArray;
35 36
36 struct CC_EXPORT TransferableResourceList : 37 struct CC_EXPORT TransferableResourceList :
37 public NON_EXPORTED_BASE(WebKit::WebCompositorTransferableResourceList) { 38 public NON_EXPORTED_BASE(WebKit::WebCompositorTransferableResourceList) {
38 TransferableResourceList(); 39 TransferableResourceList();
39 ~TransferableResourceList(); 40 ~TransferableResourceList();
40 41
41 TransferableResourceArray resources; 42 TransferableResourceArray resources;
42 unsigned sync_point; 43 unsigned sync_point;
43 }; 44 };
44 45
45 } // namespace cc 46 } // namespace cc
46 47
47 #endif // CC_TRANSFERABLE_RESOURCE_H_ 48 #endif // CC_TRANSFERABLE_RESOURCE_H_
OLDNEW
« no previous file with comments | « cc/test/render_pass_test_common.cc ('k') | cc/transferable_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698