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

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

Issue 1490043002: Implementing Blink-side validation for WebGL 2 Samplers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed zmo@'s new feedback Created 5 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
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 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 // Adds a compressed texture format. 486 // Adds a compressed texture format.
487 void addCompressedTextureFormat(GLenum); 487 void addCompressedTextureFormat(GLenum);
488 void removeAllCompressedTextureFormats(); 488 void removeAllCompressedTextureFormats();
489 489
490 PassRefPtr<Image> drawImageIntoBuffer(PassRefPtr<Image>, int width, int heig ht, const char* functionName); 490 PassRefPtr<Image> drawImageIntoBuffer(PassRefPtr<Image>, int width, int heig ht, const char* functionName);
491 491
492 PassRefPtr<Image> videoFrameToImage(HTMLVideoElement*); 492 PassRefPtr<Image> videoFrameToImage(HTMLVideoElement*);
493 493
494 WebGLRenderbuffer* ensureEmulatedStencilBuffer(GLenum target, WebGLRenderbuf fer*); 494 WebGLRenderbuffer* ensureEmulatedStencilBuffer(GLenum target, WebGLRenderbuf fer*);
495 495
496 virtual const WebGLSamplerState* getTextureUnitSamplerState(GLenum target, G Luint unit) const;
497
496 // Structure for rendering to a DrawingBuffer, instead of directly 498 // Structure for rendering to a DrawingBuffer, instead of directly
497 // to the back-buffer of m_context. 499 // to the back-buffer of m_context.
498 RefPtr<DrawingBuffer> m_drawingBuffer; 500 RefPtr<DrawingBuffer> m_drawingBuffer;
499 DrawingBuffer* drawingBuffer() const; 501 DrawingBuffer* drawingBuffer() const;
500 502
501 RefPtr<WebGLContextGroup> m_contextGroup; 503 RefPtr<WebGLContextGroup> m_contextGroup;
502 504
503 LostContextMode m_contextLostMode; 505 LostContextMode m_contextLostMode;
504 AutoRecoveryMethod m_autoRecoveryMethod; 506 AutoRecoveryMethod m_autoRecoveryMethod;
505 // Dispatches a context lost event once it is determined that one is needed. 507 // Dispatches a context lost event once it is determined that one is needed.
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
1132 static WebGLRenderingContextBase* oldestEvictedContext(); 1134 static WebGLRenderingContextBase* oldestEvictedContext();
1133 }; 1135 };
1134 1136
1135 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d()); 1137 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d());
1136 1138
1137 } // namespace blink 1139 } // namespace blink
1138 1140
1139 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState); 1141 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState);
1140 1142
1141 #endif // WebGLRenderingContextBase_h 1143 #endif // WebGLRenderingContextBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698