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

Side by Side Diff: Source/platform/graphics/Extensions3D.cpp

Issue 106503003: Changed GL enums from GraphicsContext3D to standard versions (Take 2) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | « Source/platform/graphics/Extensions3D.h ('k') | Source/platform/graphics/GraphicsContext3D.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 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 void Extensions3D::getQueryObjectuivEXT(Platform3DObject query, GC3Denum pname, GC3Duint* params) 171 void Extensions3D::getQueryObjectuivEXT(Platform3DObject query, GC3Denum pname, GC3Duint* params)
172 { 172 {
173 m_context->webContext()->getQueryObjectuivEXT(query, pname, params); 173 m_context->webContext()->getQueryObjectuivEXT(query, pname, params);
174 } 174 }
175 175
176 bool Extensions3D::canUseCopyTextureCHROMIUM(GC3Denum destFormat, GC3Denum destT ype, GC3Dint level) 176 bool Extensions3D::canUseCopyTextureCHROMIUM(GC3Denum destFormat, GC3Denum destT ype, GC3Dint level)
177 { 177 {
178 // FIXME: restriction of (RGB || RGBA)/UNSIGNED_BYTE/(Level 0) should be lif ted when 178 // FIXME: restriction of (RGB || RGBA)/UNSIGNED_BYTE/(Level 0) should be lif ted when
179 // WebGraphicsContext3D::copyTextureCHROMIUM(...) are fully functional. 179 // WebGraphicsContext3D::copyTextureCHROMIUM(...) are fully functional.
180 if ((destFormat == GraphicsContext3D::RGB || destFormat == GraphicsContext3D ::RGBA) 180 if ((destFormat == GL_RGB || destFormat == GL_RGBA)
181 && destType == GraphicsContext3D::UNSIGNED_BYTE 181 && destType == GL_UNSIGNED_BYTE
182 && !level) 182 && !level)
183 return true; 183 return true;
184 return false; 184 return false;
185 } 185 }
186 186
187 void Extensions3D::copyTextureCHROMIUM(GC3Denum target, Platform3DObject sourceI d, Platform3DObject destId, GC3Dint level, GC3Denum internalFormat, GC3Denum des tType) 187 void Extensions3D::copyTextureCHROMIUM(GC3Denum target, Platform3DObject sourceI d, Platform3DObject destId, GC3Dint level, GC3Denum internalFormat, GC3Denum des tType)
188 { 188 {
189 m_context->webContext()->copyTextureCHROMIUM(target, sourceId, destId, level , internalFormat, destType); 189 m_context->webContext()->copyTextureCHROMIUM(target, sourceId, destId, level , internalFormat, destType);
190 } 190 }
191 191
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 { 228 {
229 m_context->webContext()->vertexAttribDivisorANGLE(index, divisor); 229 m_context->webContext()->vertexAttribDivisorANGLE(index, divisor);
230 } 230 }
231 231
232 void Extensions3D::loseContextCHROMIUM(GC3Denum current, GC3Denum other) 232 void Extensions3D::loseContextCHROMIUM(GC3Denum current, GC3Denum other)
233 { 233 {
234 m_context->webContext()->loseContextCHROMIUM(current, other); 234 m_context->webContext()->loseContextCHROMIUM(current, other);
235 } 235 }
236 236
237 } // namespace WebCore 237 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/platform/graphics/Extensions3D.h ('k') | Source/platform/graphics/GraphicsContext3D.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698