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

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h

Issue 1673113002: Move WebGL1 attachment image type / attachment point matching check to command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
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 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 496
497 // Set UNPACK_ALIGNMENT to 1, all other parameters to 0. 497 // Set UNPACK_ALIGNMENT to 1, all other parameters to 0.
498 virtual void resetUnpackParameters(); 498 virtual void resetUnpackParameters();
499 // Restore the client unpack parameters. 499 // Restore the client unpack parameters.
500 virtual void restoreUnpackParameters(); 500 virtual void restoreUnpackParameters();
501 501
502 PassRefPtr<Image> drawImageIntoBuffer(PassRefPtr<Image>, int width, int heig ht, const char* functionName); 502 PassRefPtr<Image> drawImageIntoBuffer(PassRefPtr<Image>, int width, int heig ht, const char* functionName);
503 503
504 PassRefPtr<Image> videoFrameToImage(HTMLVideoElement*); 504 PassRefPtr<Image> videoFrameToImage(HTMLVideoElement*);
505 505
506 WebGLRenderbuffer* ensureEmulatedStencilBuffer(GLenum target, WebGLRenderbuf fer*);
507
508 virtual const WebGLSamplerState* getTextureUnitSamplerState(GLenum target, G Luint unit) const; 506 virtual const WebGLSamplerState* getTextureUnitSamplerState(GLenum target, G Luint unit) const;
509 507
510 // Structure for rendering to a DrawingBuffer, instead of directly 508 // Structure for rendering to a DrawingBuffer, instead of directly
511 // to the back-buffer of m_context. 509 // to the back-buffer of m_context.
512 RefPtr<DrawingBuffer> m_drawingBuffer; 510 RefPtr<DrawingBuffer> m_drawingBuffer;
513 DrawingBuffer* drawingBuffer() const; 511 DrawingBuffer* drawingBuffer() const;
514 512
515 RefPtr<WebGLContextGroup> m_contextGroup; 513 RefPtr<WebGLContextGroup> m_contextGroup;
516 514
517 LostContextMode m_contextLostMode; 515 LostContextMode m_contextLostMode;
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
1125 #endif 1123 #endif
1126 }; 1124 };
1127 1125
1128 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d()); 1126 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d());
1129 1127
1130 } // namespace blink 1128 } // namespace blink
1131 1129
1132 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState); 1130 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState);
1133 1131
1134 #endif // WebGLRenderingContextBase_h 1132 #endif // WebGLRenderingContextBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698