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

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

Issue 1084313004: Oilpan: keep ImageData on the heap by default. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Ensure timely disposal of temporary ImageData buffers Created 5 years, 7 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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 void forceRestoreContext(); 351 void forceRestoreContext();
352 void loseContextImpl(LostContextMode, AutoRecoveryMethod); 352 void loseContextImpl(LostContextMode, AutoRecoveryMethod);
353 353
354 WebGraphicsContext3D* webContext() const { return drawingBuffer()->context() ; } 354 WebGraphicsContext3D* webContext() const { return drawingBuffer()->context() ; }
355 WebGLContextGroup* contextGroup() const { return m_contextGroup.get(); } 355 WebGLContextGroup* contextGroup() const { return m_contextGroup.get(); }
356 Extensions3DUtil* extensionsUtil(); 356 Extensions3DUtil* extensionsUtil();
357 357
358 void reshape(int width, int height); 358 void reshape(int width, int height);
359 359
360 void markLayerComposited(); 360 void markLayerComposited();
361 PassRefPtrWillBeRawPtr<ImageData> paintRenderingResultsToImageData(SourceDra wingBuffer); 361 ImageData* paintRenderingResultsToImageData(SourceDrawingBuffer);
362 362
363 void removeSharedObject(WebGLSharedObject*); 363 void removeSharedObject(WebGLSharedObject*);
364 void removeContextObject(WebGLContextObject*); 364 void removeContextObject(WebGLContextObject*);
365 365
366 unsigned maxVertexAttribs() const { return m_maxVertexAttribs; } 366 unsigned maxVertexAttribs() const { return m_maxVertexAttribs; }
367 367
368 // GL_CHROMIUM_subscribe_uniform 368 // GL_CHROMIUM_subscribe_uniform
369 PassRefPtrWillBeRawPtr<CHROMIUMValuebuffer> createValuebufferCHROMIUM(); 369 PassRefPtrWillBeRawPtr<CHROMIUMValuebuffer> createValuebufferCHROMIUM();
370 void deleteValuebufferCHROMIUM(CHROMIUMValuebuffer*); 370 void deleteValuebufferCHROMIUM(CHROMIUMValuebuffer*);
371 GLboolean isValuebufferCHROMIUM(CHROMIUMValuebuffer*); 371 GLboolean isValuebufferCHROMIUM(CHROMIUMValuebuffer*);
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 static IntSize oldestContextSize(); 1011 static IntSize oldestContextSize();
1012 }; 1012 };
1013 1013
1014 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d()); 1014 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d());
1015 1015
1016 } // namespace blink 1016 } // namespace blink
1017 1017
1018 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState); 1018 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState);
1019 1019
1020 #endif // WebGLRenderingContextBase_h 1020 #endif // WebGLRenderingContextBase_h
OLDNEW
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2DTest.cpp ('k') | Source/core/html/canvas/WebGLRenderingContextBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698