Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
angle
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
angle
Commits
7bf02174
Commit
7bf02174
authored
Sep 26, 2013
by
Nicolas Capens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Eliminate bitfield enum members to avoid GCC compile error.
BUG=448 R=alokp@chromium.org Review URL:
https://codereview.appspot.com/13239046
parent
16a3eb3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
Types.h
src/compiler/Types.h
+10
-10
No files found.
src/compiler/Types.h
View file @
7bf02174
//
//
// Copyright (c) 2002-201
2
The ANGLE Project Authors. All rights reserved.
// Copyright (c) 2002-201
3
The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
//
//
...
@@ -95,7 +95,7 @@ class TType
...
@@ -95,7 +95,7 @@ class TType
public
:
public
:
POOL_ALLOCATOR_NEW_DELETE
();
POOL_ALLOCATOR_NEW_DELETE
();
TType
()
{}
TType
()
{}
TType
(
TBasicType
t
,
TPrecision
p
,
TQualifier
q
=
EvqTemporary
,
int
s
=
1
,
bool
m
=
false
,
bool
a
=
false
)
:
TType
(
TBasicType
t
,
TPrecision
p
,
TQualifier
q
=
EvqTemporary
,
unsigned
char
s
=
1
,
bool
m
=
false
,
bool
a
=
false
)
:
type
(
t
),
precision
(
p
),
qualifier
(
q
),
size
(
s
),
matrix
(
m
),
array
(
a
),
arraySize
(
0
),
structure
(
0
)
type
(
t
),
precision
(
p
),
qualifier
(
q
),
size
(
s
),
matrix
(
m
),
array
(
a
),
arraySize
(
0
),
structure
(
0
)
{
{
}
}
...
@@ -116,7 +116,7 @@ public:
...
@@ -116,7 +116,7 @@ public:
// One-dimensional size of single instance type
// One-dimensional size of single instance type
int
getNominalSize
()
const
{
return
size
;
}
int
getNominalSize
()
const
{
return
size
;
}
void
setNominalSize
(
int
s
)
{
size
=
s
;
}
void
setNominalSize
(
unsigned
char
s
)
{
size
=
s
;
}
// Full size of single instance of type
// Full size of single instance of type
size_t
getObjectSize
()
const
;
size_t
getObjectSize
()
const
;
...
@@ -234,12 +234,12 @@ public:
...
@@ -234,12 +234,12 @@ public:
private
:
private
:
TString
buildMangledName
()
const
;
TString
buildMangledName
()
const
;
TBasicType
type
:
6
;
TBasicType
type
;
TPrecision
precision
;
TPrecision
precision
;
TQualifier
qualifier
:
7
;
TQualifier
qualifier
;
int
size
:
8
;
// size of vector or matrix, not size of array
unsigned
char
size
;
unsigned
int
matrix
:
1
;
bool
matrix
;
unsigned
int
array
:
1
;
bool
array
;
int
arraySize
;
int
arraySize
;
TStructure
*
structure
;
// 0 unless this is a struct
TStructure
*
structure
;
// 0 unless this is a struct
...
@@ -261,7 +261,7 @@ struct TPublicType
...
@@ -261,7 +261,7 @@ struct TPublicType
TBasicType
type
;
TBasicType
type
;
TQualifier
qualifier
;
TQualifier
qualifier
;
TPrecision
precision
;
TPrecision
precision
;
int
size
;
// size of vector or matrix, not size of array
unsigned
char
size
;
// size of vector or matrix, not size of array
bool
matrix
;
bool
matrix
;
bool
array
;
bool
array
;
int
arraySize
;
int
arraySize
;
...
@@ -281,7 +281,7 @@ struct TPublicType
...
@@ -281,7 +281,7 @@ struct TPublicType
line
=
ln
;
line
=
ln
;
}
}
void
setAggregate
(
int
s
,
bool
m
=
false
)
void
setAggregate
(
unsigned
char
s
,
bool
m
=
false
)
{
{
size
=
s
;
size
=
s
;
matrix
=
m
;
matrix
=
m
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment