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