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

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

Issue 1265703005: Implement the texture uploading of ASTC compression for WebGL(part II) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add braces. 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
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 class IntSize; 74 class IntSize;
75 class OESElementIndexUint; 75 class OESElementIndexUint;
76 class OESStandardDerivatives; 76 class OESStandardDerivatives;
77 class OESTextureFloat; 77 class OESTextureFloat;
78 class OESTextureFloatLinear; 78 class OESTextureFloatLinear;
79 class OESTextureHalfFloat; 79 class OESTextureHalfFloat;
80 class OESTextureHalfFloatLinear; 80 class OESTextureHalfFloatLinear;
81 class OESVertexArrayObject; 81 class OESVertexArrayObject;
82 class WebGLActiveInfo; 82 class WebGLActiveInfo;
83 class WebGLBuffer; 83 class WebGLBuffer;
84 class WebGLCompressedTextureASTC;
84 class WebGLCompressedTextureATC; 85 class WebGLCompressedTextureATC;
85 class WebGLCompressedTextureETC1; 86 class WebGLCompressedTextureETC1;
86 class WebGLCompressedTexturePVRTC; 87 class WebGLCompressedTexturePVRTC;
87 class WebGLCompressedTextureS3TC; 88 class WebGLCompressedTextureS3TC;
88 class WebGLContextGroup; 89 class WebGLContextGroup;
89 class WebGLContextObject; 90 class WebGLContextObject;
90 class WebGLDebugRendererInfo; 91 class WebGLDebugRendererInfo;
91 class WebGLDebugShaders; 92 class WebGLDebugShaders;
92 class WebGLDepthTexture; 93 class WebGLDepthTexture;
93 class WebGLDrawBuffers; 94 class WebGLDrawBuffers;
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 void setFilterQuality(SkFilterQuality) override; 404 void setFilterQuality(SkFilterQuality) override;
404 bool isWebGL2OrHigher() { return version() >= 2; } 405 bool isWebGL2OrHigher() { return version() >= 2; }
405 406
406 protected: 407 protected:
407 friend class WebGLDrawBuffers; 408 friend class WebGLDrawBuffers;
408 friend class WebGLFramebuffer; 409 friend class WebGLFramebuffer;
409 friend class WebGLObject; 410 friend class WebGLObject;
410 friend class WebGLContextObject; 411 friend class WebGLContextObject;
411 friend class OESVertexArrayObject; 412 friend class OESVertexArrayObject;
412 friend class WebGLDebugShaders; 413 friend class WebGLDebugShaders;
414 friend class WebGLCompressedTextureASTC;
413 friend class WebGLCompressedTextureATC; 415 friend class WebGLCompressedTextureATC;
414 friend class WebGLCompressedTextureETC1; 416 friend class WebGLCompressedTextureETC1;
415 friend class WebGLCompressedTexturePVRTC; 417 friend class WebGLCompressedTexturePVRTC;
416 friend class WebGLCompressedTextureS3TC; 418 friend class WebGLCompressedTextureS3TC;
417 friend class WebGLRenderingContextErrorMessageCallback; 419 friend class WebGLRenderingContextErrorMessageCallback;
418 friend class WebGLVertexArrayObjectBase; 420 friend class WebGLVertexArrayObjectBase;
419 friend class ScopedTexture2DRestorer; 421 friend class ScopedTexture2DRestorer;
420 friend class ScopedFramebufferRestorer; 422 friend class ScopedFramebufferRestorer;
421 423
422 WebGLRenderingContextBase(HTMLCanvasElement*, PassOwnPtr<WebGraphicsContext3 D>, const WebGLContextAttributes&); 424 WebGLRenderingContextBase(HTMLCanvasElement*, PassOwnPtr<WebGraphicsContext3 D>, const WebGLContextAttributes&);
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
1039 static IntSize oldestContextSize(); 1041 static IntSize oldestContextSize();
1040 }; 1042 };
1041 1043
1042 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d()); 1044 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d());
1043 1045
1044 } // namespace blink 1046 } // namespace blink
1045 1047
1046 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState); 1048 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState);
1047 1049
1048 #endif // WebGLRenderingContextBase_h 1050 #endif // WebGLRenderingContextBase_h
OLDNEW
« no previous file with comments | « Source/modules/webgl/WebGLRenderingContext.cpp ('k') | Source/modules/webgl/WebGLRenderingContextBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698