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

Side by Side Diff: gpu/command_buffer/service/texture_definition.cc

Issue 11194042: Implement TextureImageTransportSurface using texture mailbox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win_aura 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 | « gpu/command_buffer/service/texture_definition.h ('k') | ui/compositor/compositor.h » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "gpu/command_buffer/service/texture_definition.h" 5 #include "gpu/command_buffer/service/texture_definition.h"
6 6
7 namespace gpu { 7 namespace gpu {
8 namespace gles2 { 8 namespace gles2 {
9 9
10 TextureDefinition::LevelInfo::LevelInfo(GLenum target, 10 TextureDefinition::LevelInfo::LevelInfo(GLenum target,
11 GLenum internal_format, 11 GLenum internal_format,
12 GLsizei width, 12 GLsizei width,
13 GLsizei height, 13 GLsizei height,
14 GLsizei depth, 14 GLsizei depth,
15 GLint border, 15 GLint border,
16 GLenum format, 16 GLenum format,
17 GLenum type, 17 GLenum type,
18 bool cleared) 18 bool cleared)
19 : target(target), 19 : target(target),
20 internal_format(internal_format), 20 internal_format(internal_format),
21 width(width), 21 width(width),
22 height(height), 22 height(height),
23 depth(depth), 23 depth(depth),
24 border(border), 24 border(border),
25 format(format), 25 format(format),
26 type(type), 26 type(type),
27 cleared(cleared) { 27 cleared(cleared) {
28 } 28 }
29 29
30 TextureDefinition::LevelInfo::LevelInfo()
31 : target(0),
32 internal_format(0),
33 width(0),
34 height(0),
35 depth(0),
36 border(0),
37 format(0),
38 type(0),
39 cleared(true) {
40 }
41
30 TextureDefinition::TextureDefinition(GLenum target, 42 TextureDefinition::TextureDefinition(GLenum target,
31 GLuint service_id, 43 GLuint service_id,
32 GLenum min_filter, 44 GLenum min_filter,
33 GLenum mag_filter, 45 GLenum mag_filter,
34 GLenum wrap_s, 46 GLenum wrap_s,
35 GLenum wrap_t, 47 GLenum wrap_t,
36 GLenum usage, 48 GLenum usage,
37 bool immutable, 49 bool immutable,
38 const LevelInfos& level_infos) 50 const LevelInfos& level_infos)
39 : target_(target), 51 : target_(target),
(...skipping 12 matching lines...) Expand all
52 } 64 }
53 65
54 GLuint TextureDefinition::ReleaseServiceId() { 66 GLuint TextureDefinition::ReleaseServiceId() {
55 GLuint service_id = service_id_; 67 GLuint service_id = service_id_;
56 service_id_ = 0; 68 service_id_ = 0;
57 return service_id; 69 return service_id;
58 } 70 }
59 71
60 } // namespace gles2 72 } // namespace gles2
61 } // namespace gpu 73 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/texture_definition.h ('k') | ui/compositor/compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698