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

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

Issue 749653002: WebGL: clarify which Front or Back buffer is used by each API. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix bot failure, and fix existing bug of HTMLCanvasElement::imageSourceURL() Created 6 years, 1 month 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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 void forceRestoreContext(); 341 void forceRestoreContext();
342 void loseContextImpl(LostContextMode, AutoRecoveryMethod); 342 void loseContextImpl(LostContextMode, AutoRecoveryMethod);
343 343
344 blink::WebGraphicsContext3D* webContext() const { return drawingBuffer()->co ntext(); } 344 blink::WebGraphicsContext3D* webContext() const { return drawingBuffer()->co ntext(); }
345 WebGLContextGroup* contextGroup() const { return m_contextGroup.get(); } 345 WebGLContextGroup* contextGroup() const { return m_contextGroup.get(); }
346 Extensions3DUtil* extensionsUtil(); 346 Extensions3DUtil* extensionsUtil();
347 347
348 void reshape(int width, int height); 348 void reshape(int width, int height);
349 349
350 void markLayerComposited(); 350 void markLayerComposited();
351 PassRefPtrWillBeRawPtr<ImageData> paintRenderingResultsToImageData(); 351 PassRefPtrWillBeRawPtr<ImageData> paintRenderingResultsToImageData(SourceBuf fer);
352 352
353 void removeSharedObject(WebGLSharedObject*); 353 void removeSharedObject(WebGLSharedObject*);
354 void removeContextObject(WebGLContextObject*); 354 void removeContextObject(WebGLContextObject*);
355 355
356 unsigned maxVertexAttribs() const { return m_maxVertexAttribs; } 356 unsigned maxVertexAttribs() const { return m_maxVertexAttribs; }
357 357
358 // ActiveDOMObject notifications 358 // ActiveDOMObject notifications
359 virtual bool hasPendingActivity() const override; 359 virtual bool hasPendingActivity() const override;
360 virtual void stop() override; 360 virtual void stop() override;
361 361
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 static IntSize oldestContextSize(); 952 static IntSize oldestContextSize();
953 }; 953 };
954 954
955 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d()); 955 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d());
956 956
957 } // namespace blink 957 } // namespace blink
958 958
959 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState); 959 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState);
960 960
961 #endif // WebGLRenderingContextBase_h 961 #endif // WebGLRenderingContextBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698