| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 }; | 184 }; |
| 185 | 185 |
| 186 Canvas2DLayerBridge(std::unique_ptr<WebGraphicsContext3DProvider>, const Int
Size&, int msaaSampleCount, OpacityMode, AccelerationMode); | 186 Canvas2DLayerBridge(std::unique_ptr<WebGraphicsContext3DProvider>, const Int
Size&, int msaaSampleCount, OpacityMode, AccelerationMode); |
| 187 gpu::gles2::GLES2Interface* contextGL(); | 187 gpu::gles2::GLES2Interface* contextGL(); |
| 188 void startRecording(); | 188 void startRecording(); |
| 189 void skipQueuedDrawCommands(); | 189 void skipQueuedDrawCommands(); |
| 190 void flushRecordingOnly(); | 190 void flushRecordingOnly(); |
| 191 void unregisterTaskObserver(); | 191 void unregisterTaskObserver(); |
| 192 void reportSurfaceCreationFailure(); | 192 void reportSurfaceCreationFailure(); |
| 193 | 193 |
| 194 void disableAcceleration(); | |
| 195 | |
| 196 // WebThread::TaskOberver implementation | 194 // WebThread::TaskOberver implementation |
| 197 void willProcessTask() override; | 195 void willProcessTask() override; |
| 198 void didProcessTask() override; | 196 void didProcessTask() override; |
| 199 | 197 |
| 200 SkSurface* getOrCreateSurface(AccelerationHint = PreferAcceleration); | 198 SkSurface* getOrCreateSurface(AccelerationHint = PreferAcceleration); |
| 201 bool shouldAccelerate(AccelerationHint) const; | 199 bool shouldAccelerate(AccelerationHint) const; |
| 202 | 200 |
| 203 // Returns the GL filter associated with |m_filterQuality|. | 201 // Returns the GL filter associated with |m_filterQuality|. |
| 204 GLenum getGLFilter(); | 202 GLenum getGLFilter(); |
| 205 | 203 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 // Each element in this vector represents an IOSurface backed texture that | 277 // Each element in this vector represents an IOSurface backed texture that |
| 280 // is ready to be reused. | 278 // is ready to be reused. |
| 281 // Elements in this vector can safely be purged in low memory conditions. | 279 // Elements in this vector can safely be purged in low memory conditions. |
| 282 Vector<ImageInfo> m_imageInfoCache; | 280 Vector<ImageInfo> m_imageInfoCache; |
| 283 #endif // USE_IOSURFACE_FOR_2D_CANVAS | 281 #endif // USE_IOSURFACE_FOR_2D_CANVAS |
| 284 }; | 282 }; |
| 285 | 283 |
| 286 } // namespace blink | 284 } // namespace blink |
| 287 | 285 |
| 288 #endif | 286 #endif |
| OLD | NEW |