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

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

Issue 2191533003: Refactor Timer classes in preparation for landing FrameTimers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android build fix Created 4 years, 4 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 991 matching lines...) Expand 10 before | Expand all | Expand 10 after
1002 1002
1003 // Helper function for delete* (deleteBuffer, deleteProgram, etc) functions. 1003 // Helper function for delete* (deleteBuffer, deleteProgram, etc) functions.
1004 // Return false if caller should return without further processing. 1004 // Return false if caller should return without further processing.
1005 bool deleteObject(WebGLObject*); 1005 bool deleteObject(WebGLObject*);
1006 1006
1007 // Helper function for bind* (bindBuffer, bindTexture, etc) and useProgram. 1007 // Helper function for bind* (bindBuffer, bindTexture, etc) and useProgram.
1008 // If the object has already been deleted, set deleted to true upon return. 1008 // If the object has already been deleted, set deleted to true upon return.
1009 // Return false if caller should return without further processing. 1009 // Return false if caller should return without further processing.
1010 bool checkObjectToBeBound(const char* functionName, WebGLObject*, bool& dele ted); 1010 bool checkObjectToBeBound(const char* functionName, WebGLObject*, bool& dele ted);
1011 1011
1012 void dispatchContextLostEvent(Timer<WebGLRenderingContextBase>*); 1012 void dispatchContextLostEvent(TimerBase*);
1013 // Helper for restoration after context lost. 1013 // Helper for restoration after context lost.
1014 void maybeRestoreContext(Timer<WebGLRenderingContextBase>*); 1014 void maybeRestoreContext(TimerBase*);
1015 1015
1016 enum ConsoleDisplayPreference { 1016 enum ConsoleDisplayPreference {
1017 DisplayInConsole, 1017 DisplayInConsole,
1018 DontDisplayInConsole 1018 DontDisplayInConsole
1019 }; 1019 };
1020 1020
1021 // Reports an error to glGetError, sends a message to the JavaScript 1021 // Reports an error to glGetError, sends a message to the JavaScript
1022 // console. 1022 // console.
1023 void synthesizeGLError(GLenum, const char* functionName, const char* descrip tion, ConsoleDisplayPreference = DisplayInConsole); 1023 void synthesizeGLError(GLenum, const char* functionName, const char* descrip tion, ConsoleDisplayPreference = DisplayInConsole);
1024 void emitGLWarning(const char* function, const char* reason); 1024 void emitGLWarning(const char* function, const char* reason);
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
1116 const unsigned m_version; 1116 const unsigned m_version;
1117 }; 1117 };
1118 1118
1119 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d()); 1119 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d());
1120 1120
1121 } // namespace blink 1121 } // namespace blink
1122 1122
1123 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState); 1123 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState);
1124 1124
1125 #endif // WebGLRenderingContextBase_h 1125 #endif // WebGLRenderingContextBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698