| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 namespace blink { | 47 namespace blink { |
| 48 | 48 |
| 49 class Canvas2DLayerBridgeHistogramLogger; | 49 class Canvas2DLayerBridgeHistogramLogger; |
| 50 class Canvas2DLayerBridgeTest; | 50 class Canvas2DLayerBridgeTest; |
| 51 class ImageBuffer; | 51 class ImageBuffer; |
| 52 class WebGraphicsContext3D; | 52 class WebGraphicsContext3D; |
| 53 class WebGraphicsContext3DProvider; | 53 class WebGraphicsContext3DProvider; |
| 54 class SharedContextRateLimiter; | 54 class SharedContextRateLimiter; |
| 55 | 55 |
| 56 #if OS(MACOSX) |
| 57 // Canvas hibernation is currently disabled on MacOS X due to a bug that causes
content loss |
| 58 // TODO: Find a better fix for crbug.com/588434 |
| 59 #define CANVAS2D_HIBERNATION_ENABLED 0 |
| 60 #else |
| 61 #define CANVAS2D_HIBERNATION_ENABLED 1 |
| 62 #endif |
| 63 |
| 56 class PLATFORM_EXPORT Canvas2DLayerBridge : public WebExternalTextureLayerClient
, public WebThread::TaskObserver, public RefCounted<Canvas2DLayerBridge> { | 64 class PLATFORM_EXPORT Canvas2DLayerBridge : public WebExternalTextureLayerClient
, public WebThread::TaskObserver, public RefCounted<Canvas2DLayerBridge> { |
| 57 WTF_MAKE_NONCOPYABLE(Canvas2DLayerBridge); | 65 WTF_MAKE_NONCOPYABLE(Canvas2DLayerBridge); |
| 58 public: | 66 public: |
| 59 enum AccelerationMode { | 67 enum AccelerationMode { |
| 60 DisableAcceleration, | 68 DisableAcceleration, |
| 61 EnableAcceleration, | 69 EnableAcceleration, |
| 62 ForceAccelerationForTesting, | 70 ForceAccelerationForTesting, |
| 63 }; | 71 }; |
| 64 | 72 |
| 65 static PassRefPtr<Canvas2DLayerBridge> create(const IntSize&, int msaaSample
Count, OpacityMode, AccelerationMode); | 73 static PassRefPtr<Canvas2DLayerBridge> create(const IntSize&, int msaaSample
Count, OpacityMode, AccelerationMode); |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 GLenum m_lastFilter; | 208 GLenum m_lastFilter; |
| 201 AccelerationMode m_accelerationMode; | 209 AccelerationMode m_accelerationMode; |
| 202 OpacityMode m_opacityMode; | 210 OpacityMode m_opacityMode; |
| 203 IntSize m_size; | 211 IntSize m_size; |
| 204 int m_recordingPixelCount; | 212 int m_recordingPixelCount; |
| 205 }; | 213 }; |
| 206 | 214 |
| 207 } // namespace blink | 215 } // namespace blink |
| 208 | 216 |
| 209 #endif | 217 #endif |
| OLD | NEW |