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

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

Issue 1894313002: Removed implementation of CHROMIUM_subscribe_uniform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed a couple more mus/ references Created 4 years, 8 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 namespace gpu { 58 namespace gpu {
59 namespace gles2 { 59 namespace gles2 {
60 class GLES2Interface; 60 class GLES2Interface;
61 } 61 }
62 } 62 }
63 63
64 namespace blink { 64 namespace blink {
65 65
66 class ANGLEInstancedArrays; 66 class ANGLEInstancedArrays;
67 class CHROMIUMSubscribeUniform;
68 class CHROMIUMValuebuffer;
69 class EXTBlendMinMax; 67 class EXTBlendMinMax;
70 class EXTDisjointTimerQuery; 68 class EXTDisjointTimerQuery;
71 class EXTFragDepth; 69 class EXTFragDepth;
72 class EXTShaderTextureLOD; 70 class EXTShaderTextureLOD;
73 class EXTsRGB; 71 class EXTsRGB;
74 class EXTTextureFilterAnisotropic; 72 class EXTTextureFilterAnisotropic;
75 class ExceptionState; 73 class ExceptionState;
76 class HTMLImageElement; 74 class HTMLImageElement;
77 class HTMLVideoElement; 75 class HTMLVideoElement;
78 class ImageBitmap; 76 class ImageBitmap;
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 void reshape(int width, int height) override; 387 void reshape(int width, int height) override;
390 388
391 void markLayerComposited() override; 389 void markLayerComposited() override;
392 ImageData* paintRenderingResultsToImageData(SourceDrawingBuffer) override; 390 ImageData* paintRenderingResultsToImageData(SourceDrawingBuffer) override;
393 391
394 void removeSharedObject(WebGLSharedObject*); 392 void removeSharedObject(WebGLSharedObject*);
395 void removeContextObject(WebGLContextObject*); 393 void removeContextObject(WebGLContextObject*);
396 394
397 unsigned maxVertexAttribs() const { return m_maxVertexAttribs; } 395 unsigned maxVertexAttribs() const { return m_maxVertexAttribs; }
398 396
399 // GL_CHROMIUM_subscribe_uniform
400 CHROMIUMValuebuffer* createValuebufferCHROMIUM();
401 void deleteValuebufferCHROMIUM(CHROMIUMValuebuffer*);
402 GLboolean isValuebufferCHROMIUM(CHROMIUMValuebuffer*);
403 void bindValuebufferCHROMIUM(GLenum target, CHROMIUMValuebuffer*);
404 void subscribeValueCHROMIUM(GLenum target, GLenum subscription);
405 void populateSubscribedValuesCHROMIUM(GLenum target);
406 void uniformValuebufferCHROMIUM(const WebGLUniformLocation*, GLenum target, GLenum subscription);
407
408 // Eagerly finalize WebGLRenderingContextBase in order for it 397 // Eagerly finalize WebGLRenderingContextBase in order for it
409 // to (first) be able to detach its WebGLContextObjects, before 398 // to (first) be able to detach its WebGLContextObjects, before
410 // they're later swept and finalized. 399 // they're later swept and finalized.
411 EAGERLY_FINALIZE(); 400 EAGERLY_FINALIZE();
412 DECLARE_EAGER_FINALIZATION_OPERATOR_NEW(); 401 DECLARE_EAGER_FINALIZATION_OPERATOR_NEW();
413 DECLARE_VIRTUAL_TRACE(); 402 DECLARE_VIRTUAL_TRACE();
414 403
415 // Returns approximate gpu memory allocated per pixel. 404 // Returns approximate gpu memory allocated per pixel.
416 int externallyAllocatedBytesPerPixel() override; 405 int externallyAllocatedBytesPerPixel() override;
417 406
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 Uint32ArrayType, 520 Uint32ArrayType,
532 }; 521 };
533 522
534 Vector<VertexAttribValueType> m_vertexAttribType; 523 Vector<VertexAttribValueType> m_vertexAttribType;
535 unsigned m_maxVertexAttribs; 524 unsigned m_maxVertexAttribs;
536 void setVertexAttribType(GLuint index, VertexAttribValueType); 525 void setVertexAttribType(GLuint index, VertexAttribValueType);
537 526
538 Member<WebGLProgram> m_currentProgram; 527 Member<WebGLProgram> m_currentProgram;
539 Member<WebGLFramebuffer> m_framebufferBinding; 528 Member<WebGLFramebuffer> m_framebufferBinding;
540 Member<WebGLRenderbuffer> m_renderbufferBinding; 529 Member<WebGLRenderbuffer> m_renderbufferBinding;
541 Member<CHROMIUMValuebuffer> m_valuebufferBinding;
542 530
543 HeapVector<TextureUnitState> m_textureUnits; 531 HeapVector<TextureUnitState> m_textureUnits;
544 unsigned long m_activeTextureUnit; 532 unsigned long m_activeTextureUnit;
545 533
546 Vector<GLenum> m_compressedTextureFormats; 534 Vector<GLenum> m_compressedTextureFormats;
547 535
548 // Fixed-size cache of reusable image buffers for video texImage2D calls. 536 // Fixed-size cache of reusable image buffers for video texImage2D calls.
549 class LRUImageBufferCache { 537 class LRUImageBufferCache {
550 public: 538 public:
551 LRUImageBufferCache(int capacity); 539 LRUImageBufferCache(int capacity);
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
1082 CrossThreadWeakPersistentThisPointer<WebGLRenderingContextBase> createWeakTh isPointer() { return CrossThreadWeakPersistentThisPointer<WebGLRenderingContextB ase>(this); } 1070 CrossThreadWeakPersistentThisPointer<WebGLRenderingContextBase> createWeakTh isPointer() { return CrossThreadWeakPersistentThisPointer<WebGLRenderingContextB ase>(this); }
1083 }; 1071 };
1084 1072
1085 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d()); 1073 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d());
1086 1074
1087 } // namespace blink 1075 } // namespace blink
1088 1076
1089 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState); 1077 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState);
1090 1078
1091 #endif // WebGLRenderingContextBase_h 1079 #endif // WebGLRenderingContextBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698