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: Source/core/platform/graphics/Extensions3D.h

Issue 16032003: Fixing Canvas2DLayerBridge to handle lost graphics contexts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Resolved merge with rate limiter CL Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 101
102 // Takes full name of extension: for example, "GL_EXT_texture_format_BGRA888 8". 102 // Takes full name of extension: for example, "GL_EXT_texture_format_BGRA888 8".
103 // Checks to see whether the given extension is actually enabled (see ensure Enabled). 103 // Checks to see whether the given extension is actually enabled (see ensure Enabled).
104 // Has no other side-effects. 104 // Has no other side-effects.
105 bool isEnabled(const String&); 105 bool isEnabled(const String&);
106 106
107 enum ExtensionsEnumType { 107 enum ExtensionsEnumType {
108 // GL_EXT_texture_format_BGRA8888 enums 108 // GL_EXT_texture_format_BGRA8888 enums
109 BGRA_EXT = 0x80E1, 109 BGRA_EXT = 0x80E1,
110 110
111 // GL_ARB_robustness enums 111 // GL_ARB_robustness/GL_CHROMIUM_lose_context enums
112 GUILTY_CONTEXT_RESET_ARB = 0x8253, 112 GUILTY_CONTEXT_RESET_ARB = 0x8253,
113 INNOCENT_CONTEXT_RESET_ARB = 0x8254, 113 INNOCENT_CONTEXT_RESET_ARB = 0x8254,
114 UNKNOWN_CONTEXT_RESET_ARB = 0x8255, 114 UNKNOWN_CONTEXT_RESET_ARB = 0x8255,
115 115
116 // GL_EXT/OES_packed_depth_stencil enums 116 // GL_EXT/OES_packed_depth_stencil enums
117 DEPTH24_STENCIL8 = 0x88F0, 117 DEPTH24_STENCIL8 = 0x88F0,
118 118
119 // GL_ANGLE_framebuffer_blit names 119 // GL_ANGLE_framebuffer_blit names
120 READ_FRAMEBUFFER = 0x8CA8, 120 READ_FRAMEBUFFER = 0x8CA8,
121 DRAW_FRAMEBUFFER = 0x8CA9, 121 DRAW_FRAMEBUFFER = 0x8CA9,
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 void getQueryObjectuivEXT(Platform3DObject, GC3Denum, GC3Duint*); 308 void getQueryObjectuivEXT(Platform3DObject, GC3Denum, GC3Duint*);
309 309
310 // GL_CHROMIUM_shallow_flush 310 // GL_CHROMIUM_shallow_flush
311 void shallowFlushCHROMIUM(); 311 void shallowFlushCHROMIUM();
312 312
313 // GL_ANGLE_instanced_arrays 313 // GL_ANGLE_instanced_arrays
314 void drawArraysInstancedANGLE(GC3Denum mode, GC3Dint first, GC3Dsizei count, GC3Dsizei primcount); 314 void drawArraysInstancedANGLE(GC3Denum mode, GC3Dint first, GC3Dsizei count, GC3Dsizei primcount);
315 void drawElementsInstancedANGLE(GC3Denum mode, GC3Dsizei count, GC3Denum typ e, GC3Dintptr offset, GC3Dsizei primcount); 315 void drawElementsInstancedANGLE(GC3Denum mode, GC3Dsizei count, GC3Denum typ e, GC3Dintptr offset, GC3Dsizei primcount);
316 void vertexAttribDivisorANGLE(GC3Duint index, GC3Duint divisor); 316 void vertexAttribDivisorANGLE(GC3Duint index, GC3Duint divisor);
317 317
318 // GL_CHROMIUM_lose_context
319 void loseContextCHROMIUM(GC3Denum, GC3Denum);
320
318 private: 321 private:
319 // Instances of this class are strictly owned by the GraphicsContext3D imple mentation and do not 322 // Instances of this class are strictly owned by the GraphicsContext3D imple mentation and do not
320 // need to be instantiated by any other code. 323 // need to be instantiated by any other code.
321 friend class GraphicsContext3D; 324 friend class GraphicsContext3D;
322 explicit Extensions3D(GraphicsContext3D*); 325 explicit Extensions3D(GraphicsContext3D*);
323 326
324 // Weak pointer back to GraphicsContext3D. 327 // Weak pointer back to GraphicsContext3D.
325 GraphicsContext3D* m_context; 328 GraphicsContext3D* m_context;
326 }; 329 };
327 330
328 } // namespace WebCore 331 } // namespace WebCore
329 332
330 #endif // Extensions3D_h 333 #endif // Extensions3D_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698