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

Side by Side Diff: Source/core/html/canvas/WebGLRenderingContext.h

Issue 135893002: Make attrib missing buffer message clearer. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 months 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 | « no previous file | Source/core/html/canvas/WebGLRenderingContext.cpp » ('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) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 // Query if the GL implementation is NPOT strict. 364 // Query if the GL implementation is NPOT strict.
365 bool isGLES2NPOTStrict() { return m_isGLES2NPOTStrict; } 365 bool isGLES2NPOTStrict() { return m_isGLES2NPOTStrict; }
366 // Query if depth_stencil buffer is supported. 366 // Query if depth_stencil buffer is supported.
367 bool isDepthStencilSupported() { return m_isDepthStencilSupported; } 367 bool isDepthStencilSupported() { return m_isDepthStencilSupported; }
368 368
369 // Helper to return the size in bytes of OpenGL data types 369 // Helper to return the size in bytes of OpenGL data types
370 // like GL_FLOAT, GL_INT, etc. 370 // like GL_FLOAT, GL_INT, etc.
371 unsigned sizeInBytes(GLenum type); 371 unsigned sizeInBytes(GLenum type);
372 372
373 // Check if each enabled vertex attribute is bound to a buffer. 373 // Check if each enabled vertex attribute is bound to a buffer.
374 bool validateRenderingState(); 374 bool validateRenderingState(const char*);
375 375
376 bool validateWebGLObject(const char*, WebGLObject*); 376 bool validateWebGLObject(const char*, WebGLObject*);
377 377
378 // Adds a compressed texture format. 378 // Adds a compressed texture format.
379 void addCompressedTextureFormat(GLenum); 379 void addCompressedTextureFormat(GLenum);
380 void removeAllCompressedTextureFormats(); 380 void removeAllCompressedTextureFormats();
381 381
382 PassRefPtr<Image> drawImageIntoBuffer(Image*, int width, int height); 382 PassRefPtr<Image> drawImageIntoBuffer(Image*, int width, int height);
383 383
384 PassRefPtr<Image> videoFrameToImage(HTMLVideoElement*, BackingStoreCopy); 384 PassRefPtr<Image> videoFrameToImage(HTMLVideoElement*, BackingStoreCopy);
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
924 // If the vector is empty, return the maximum allowed active context number. 924 // If the vector is empty, return the maximum allowed active context number.
925 static size_t oldestContextIndex(); 925 static size_t oldestContextIndex();
926 static IntSize oldestContextSize(); 926 static IntSize oldestContextSize();
927 }; 927 };
928 928
929 DEFINE_TYPE_CASTS(WebGLRenderingContext, CanvasRenderingContext, context, contex t->is3d(), context.is3d()); 929 DEFINE_TYPE_CASTS(WebGLRenderingContext, CanvasRenderingContext, context, contex t->is3d(), context.is3d());
930 930
931 } // namespace WebCore 931 } // namespace WebCore
932 932
933 #endif 933 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/canvas/WebGLRenderingContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698