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

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

Issue 2698573002: Support offscreen contexts which own their backing surface (Closed)
Patch Set: Add missing LoginCustomFlags histogram entry Created 3 years, 10 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 1617 matching lines...) Expand 10 before | Expand all | Expand 10 after
1628 DOMArrayBufferView* pixels, 1628 DOMArrayBufferView* pixels,
1629 GLuint offset); 1629 GLuint offset);
1630 1630
1631 private: 1631 private:
1632 WebGLRenderingContextBase(HTMLCanvasElement*, 1632 WebGLRenderingContextBase(HTMLCanvasElement*,
1633 OffscreenCanvas*, 1633 OffscreenCanvas*,
1634 RefPtr<WebTaskRunner>, 1634 RefPtr<WebTaskRunner>,
1635 std::unique_ptr<WebGraphicsContext3DProvider>, 1635 std::unique_ptr<WebGraphicsContext3DProvider>,
1636 const CanvasContextCreationAttributes&, 1636 const CanvasContextCreationAttributes&,
1637 unsigned); 1637 unsigned);
1638 static bool supportOwnOffscreenSurface(ExecutionContext*);
1638 static std::unique_ptr<WebGraphicsContext3DProvider> 1639 static std::unique_ptr<WebGraphicsContext3DProvider>
1639 createContextProviderInternal(HTMLCanvasElement*, 1640 createContextProviderInternal(HTMLCanvasElement*,
1640 ScriptState*, 1641 ScriptState*,
1641 const CanvasContextCreationAttributes&, 1642 const CanvasContextCreationAttributes&,
1642 unsigned); 1643 unsigned);
1643 void texImageCanvasByGPU(TexImageFunctionID, 1644 void texImageCanvasByGPU(TexImageFunctionID,
1644 HTMLCanvasElement*, 1645 HTMLCanvasElement*,
1645 GLuint, 1646 GLuint,
1646 GLenum, 1647 GLenum,
1647 GLenum, 1648 GLenum,
(...skipping 14 matching lines...) Expand all
1662 context, 1663 context,
1663 context->is3d(), 1664 context->is3d(),
1664 context.is3d()); 1665 context.is3d());
1665 1666
1666 } // namespace blink 1667 } // namespace blink
1667 1668
1668 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS( 1669 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(
1669 blink::WebGLRenderingContextBase::TextureUnitState); 1670 blink::WebGLRenderingContextBase::TextureUnitState);
1670 1671
1671 #endif // WebGLRenderingContextBase_h 1672 #endif // WebGLRenderingContextBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698