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

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

Issue 1315233003: WebGL's SVGImage buffer should be cleared (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review comments Created 5 years, 3 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 | Annotate | Revision Log
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 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 480
481 // Check if each enabled vertex attribute is bound to a buffer. 481 // Check if each enabled vertex attribute is bound to a buffer.
482 bool validateRenderingState(const char*); 482 bool validateRenderingState(const char*);
483 483
484 bool validateWebGLObject(const char*, WebGLObject*); 484 bool validateWebGLObject(const char*, WebGLObject*);
485 485
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(Image*, int width, int height, const c har* 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 // Structure for rendering to a DrawingBuffer, instead of directly 496 // Structure for rendering to a DrawingBuffer, instead of directly
497 // to the back-buffer of m_context. 497 // to the back-buffer of m_context.
498 RefPtr<DrawingBuffer> m_drawingBuffer; 498 RefPtr<DrawingBuffer> m_drawingBuffer;
499 DrawingBuffer* drawingBuffer() const; 499 DrawingBuffer* drawingBuffer() const;
500 500
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
1106 static IntSize oldestContextSize(); 1106 static IntSize oldestContextSize();
1107 }; 1107 };
1108 1108
1109 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d()); 1109 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d());
1110 1110
1111 } // namespace blink 1111 } // namespace blink
1112 1112
1113 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState); 1113 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState);
1114 1114
1115 #endif // WebGLRenderingContextBase_h 1115 #endif // WebGLRenderingContextBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698