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

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

Issue 1830033003: Make lost context callback a base::Closure thru the WGC3DProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lostcontext-webclosure: no-lambdas-sadface 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 void markContentsChanged(); 145 void markContentsChanged();
146 void setBufferClearNeeded(bool); 146 void setBufferClearNeeded(bool);
147 bool bufferClearNeeded() const; 147 bool bufferClearNeeded() const;
148 void setIsHidden(bool); 148 void setIsHidden(bool);
149 void setFilterQuality(SkFilterQuality); 149 void setFilterQuality(SkFilterQuality);
150 150
151 WebLayer* platformLayer(); 151 WebLayer* platformLayer();
152 152
153 WebGraphicsContext3D* context(); 153 WebGraphicsContext3D* context();
154 gpu::gles2::GLES2Interface* contextGL(); 154 gpu::gles2::GLES2Interface* contextGL();
155 WebGraphicsContext3DProvider* contextProvider();
155 156
156 // Returns the actual context attributes for this drawing buffer which may d iffer from the 157 // Returns the actual context attributes for this drawing buffer which may d iffer from the
157 // requested context attributes due to implementation limits. 158 // requested context attributes due to implementation limits.
158 WebGraphicsContext3D::Attributes getActualAttributes() const { return m_actu alAttributes; } 159 WebGraphicsContext3D::Attributes getActualAttributes() const { return m_actu alAttributes; }
159 160
160 // WebExternalTextureLayerClient implementation. 161 // WebExternalTextureLayerClient implementation.
161 bool prepareMailbox(WebExternalTextureMailbox*, WebExternalBitmap*) override ; 162 bool prepareMailbox(WebExternalTextureMailbox*, WebExternalBitmap*) override ;
162 void mailboxReleased(const WebExternalTextureMailbox&, bool lostResource = f alse) override; 163 void mailboxReleased(const WebExternalTextureMailbox&, bool lostResource = f alse) override;
163 164
164 // Destroys the TEXTURE_2D binding for the owned context 165 // Destroys the TEXTURE_2D binding for the owned context
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 // used to resize the Canvas. 369 // used to resize the Canvas.
369 SkBitmap m_resizingBitmap; 370 SkBitmap m_resizingBitmap;
370 371
371 // Used to flip a bitmap vertically. 372 // Used to flip a bitmap vertically.
372 Vector<uint8_t> m_scanline; 373 Vector<uint8_t> m_scanline;
373 }; 374 };
374 375
375 } // namespace blink 376 } // namespace blink
376 377
377 #endif // DrawingBuffer_h 378 #endif // DrawingBuffer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698