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

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

Issue 1809553002: blink: Remove unused or rarely used methods from WebGraphicsContext3D (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wgc3d
Patch Set: Created 4 years, 9 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 #include "public/platform/WebGraphicsContext3D.h" 49 #include "public/platform/WebGraphicsContext3D.h"
50 #include "wtf/OwnPtr.h" 50 #include "wtf/OwnPtr.h"
51 #include "wtf/text/WTFString.h" 51 #include "wtf/text/WTFString.h"
52 52
53 #include <set> 53 #include <set>
54 54
55 namespace blink { 55 namespace blink {
56 class WebLayer; 56 class WebLayer;
57 } 57 }
58 58
59 namespace gpu {
60 namespace gles2 {
61 class GLES2Interface;
62 }
63 }
64
59 namespace blink { 65 namespace blink {
60 66
61 class ANGLEInstancedArrays; 67 class ANGLEInstancedArrays;
62 class CHROMIUMSubscribeUniform; 68 class CHROMIUMSubscribeUniform;
63 class CHROMIUMValuebuffer; 69 class CHROMIUMValuebuffer;
64 class EXTBlendMinMax; 70 class EXTBlendMinMax;
65 class EXTDisjointTimerQuery; 71 class EXTDisjointTimerQuery;
66 class EXTFragDepth; 72 class EXTFragDepth;
67 class EXTShaderTextureLOD; 73 class EXTShaderTextureLOD;
68 class EXTsRGB; 74 class EXTsRGB;
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 // Restore as soon as possible, but only when 377 // Restore as soon as possible, but only when
372 // the canvas is visible. 378 // the canvas is visible.
373 Auto 379 Auto
374 }; 380 };
375 void loseContext(LostContextMode) override; 381 void loseContext(LostContextMode) override;
376 void forceLostContext(LostContextMode, AutoRecoveryMethod); 382 void forceLostContext(LostContextMode, AutoRecoveryMethod);
377 void forceRestoreContext(); 383 void forceRestoreContext();
378 void loseContextImpl(LostContextMode, AutoRecoveryMethod); 384 void loseContextImpl(LostContextMode, AutoRecoveryMethod);
379 385
380 WebGraphicsContext3D* webContext() const { return drawingBuffer()->context() ; } 386 WebGraphicsContext3D* webContext() const { return drawingBuffer()->context() ; }
387 gpu::gles2::GLES2Interface* contextGL() const { return drawingBuffer()->cont extGL(); }
381 WebGLContextGroup* contextGroup() const { return m_contextGroup.get(); } 388 WebGLContextGroup* contextGroup() const { return m_contextGroup.get(); }
382 Extensions3DUtil* extensionsUtil(); 389 Extensions3DUtil* extensionsUtil();
383 390
384 void reshape(int width, int height) override; 391 void reshape(int width, int height) override;
385 392
386 void markLayerComposited() override; 393 void markLayerComposited() override;
387 ImageData* paintRenderingResultsToImageData(SourceDrawingBuffer) override; 394 ImageData* paintRenderingResultsToImageData(SourceDrawingBuffer) override;
388 395
389 void removeSharedObject(WebGLSharedObject*); 396 void removeSharedObject(WebGLSharedObject*);
390 void removeContextObject(WebGLContextObject*); 397 void removeContextObject(WebGLContextObject*);
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
1095 #endif 1102 #endif
1096 }; 1103 };
1097 1104
1098 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d()); 1105 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d());
1099 1106
1100 } // namespace blink 1107 } // namespace blink
1101 1108
1102 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState); 1109 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState);
1103 1110
1104 #endif // WebGLRenderingContextBase_h 1111 #endif // WebGLRenderingContextBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698