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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h

Issue 1814263004: Remove create/delete methods from WebGraphicsContext3D. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@complex-casts
Patch Set: complex-create: rebase 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) 2010, Google Inc. All rights reserved. 2 * Copyright (c) 2010, 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 GLenum m_activeTextureUnit; 305 GLenum m_activeTextureUnit;
306 306
307 OwnPtr<WebGraphicsContext3DProvider> m_contextProvider; 307 OwnPtr<WebGraphicsContext3DProvider> m_contextProvider;
308 WebGraphicsContext3D* m_context; // Lifetime is tied to the m_contextProvide r. 308 WebGraphicsContext3D* m_context; // Lifetime is tied to the m_contextProvide r.
309 gpu::gles2::GLES2Interface* m_gl; // Lifetime is tied to the m_contextProvid er. 309 gpu::gles2::GLES2Interface* m_gl; // Lifetime is tied to the m_contextProvid er.
310 OwnPtr<Extensions3DUtil> m_extensionsUtil; 310 OwnPtr<Extensions3DUtil> m_extensionsUtil;
311 IntSize m_size; 311 IntSize m_size;
312 WebGraphicsContext3D::Attributes m_requestedAttributes; 312 WebGraphicsContext3D::Attributes m_requestedAttributes;
313 bool m_multisampleExtensionSupported; 313 bool m_multisampleExtensionSupported;
314 bool m_discardFramebufferSupported; 314 bool m_discardFramebufferSupported;
315 Platform3DObject m_fbo; 315 GLuint m_fbo;
316 // DrawingBuffer's output is double-buffered. m_colorBuffer is the back buff er. 316 // DrawingBuffer's output is double-buffered. m_colorBuffer is the back buff er.
317 TextureInfo m_colorBuffer; 317 TextureInfo m_colorBuffer;
318 struct FrontBufferInfo { 318 struct FrontBufferInfo {
319 TextureInfo texInfo; 319 TextureInfo texInfo;
320 WebExternalTextureMailbox mailbox; 320 WebExternalTextureMailbox mailbox;
321 }; 321 };
322 FrontBufferInfo m_frontColorBuffer; 322 FrontBufferInfo m_frontColorBuffer;
323 323
324 OwnPtr<SameThreadClosure> m_newMailboxCallback; 324 OwnPtr<SameThreadClosure> m_newMailboxCallback;
325 325
326 // This is used when the user requests either a depth or stencil buffer. 326 // This is used when the user requests either a depth or stencil buffer.
327 Platform3DObject m_depthStencilBuffer; 327 GLuint m_depthStencilBuffer;
328 328
329 // For multisampling. 329 // For multisampling.
330 Platform3DObject m_multisampleFBO; 330 GLuint m_multisampleFBO;
331 Platform3DObject m_multisampleColorBuffer; 331 GLuint m_multisampleColorBuffer;
332 332
333 // True if our contents have been modified since the last presentation of th is buffer. 333 // True if our contents have been modified since the last presentation of th is buffer.
334 bool m_contentsChanged; 334 bool m_contentsChanged;
335 335
336 // True if commit() has been called since the last time markContentsChanged( ) had been called. 336 // True if commit() has been called since the last time markContentsChanged( ) had been called.
337 bool m_contentsChangeCommitted; 337 bool m_contentsChangeCommitted;
338 bool m_bufferClearNeeded; 338 bool m_bufferClearNeeded;
339 339
340 enum AntialiasingMode { 340 enum AntialiasingMode {
341 None, 341 None,
(...skipping 26 matching lines...) Expand all
368 // used to resize the Canvas. 368 // used to resize the Canvas.
369 SkBitmap m_resizingBitmap; 369 SkBitmap m_resizingBitmap;
370 370
371 // Used to flip a bitmap vertically. 371 // Used to flip a bitmap vertically.
372 Vector<uint8_t> m_scanline; 372 Vector<uint8_t> m_scanline;
373 }; 373 };
374 374
375 } // namespace blink 375 } // namespace blink
376 376
377 #endif // DrawingBuffer_h 377 #endif // DrawingBuffer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698