OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 init(); | 71 init(); |
72 } | 72 } |
73 | 73 |
74 ~Canvas2DImageBufferSurface() override { m_layerBridge->beginDestruction(); } | 74 ~Canvas2DImageBufferSurface() override { m_layerBridge->beginDestruction(); } |
75 | 75 |
76 // ImageBufferSurface implementation | 76 // ImageBufferSurface implementation |
77 void finalizeFrame(const FloatRect& dirtyRect) override { | 77 void finalizeFrame(const FloatRect& dirtyRect) override { |
78 m_layerBridge->finalizeFrame(dirtyRect); | 78 m_layerBridge->finalizeFrame(dirtyRect); |
79 } | 79 } |
80 void willOverwriteCanvas() override { m_layerBridge->willOverwriteCanvas(); } | 80 void willOverwriteCanvas() override { m_layerBridge->willOverwriteCanvas(); } |
81 SkCanvas* canvas() override { return m_layerBridge->canvas(); } | 81 PaintCanvas* canvas() override { return m_layerBridge->canvas(); } |
82 void disableDeferral(DisableDeferralReason reason) override { | 82 void disableDeferral(DisableDeferralReason reason) override { |
83 m_layerBridge->disableDeferral(reason); | 83 m_layerBridge->disableDeferral(reason); |
84 } | 84 } |
85 bool isValid() const override { return m_layerBridge->checkSurfaceValid(); } | 85 bool isValid() const override { return m_layerBridge->checkSurfaceValid(); } |
86 bool restore() override { return m_layerBridge->restoreSurface(); } | 86 bool restore() override { return m_layerBridge->restoreSurface(); } |
87 WebLayer* layer() const override { return m_layerBridge->layer(); } | 87 WebLayer* layer() const override { return m_layerBridge->layer(); } |
88 bool isAccelerated() const override { return m_layerBridge->isAccelerated(); } | 88 bool isAccelerated() const override { return m_layerBridge->isAccelerated(); } |
89 void setFilterQuality(SkFilterQuality filterQuality) override { | 89 void setFilterQuality(SkFilterQuality filterQuality) override { |
90 m_layerBridge->setFilterQuality(filterQuality); | 90 m_layerBridge->setFilterQuality(filterQuality); |
91 } | 91 } |
(...skipping 26 matching lines...) Expand all Loading... |
118 if (isValid()) | 118 if (isValid()) |
119 m_layerBridge->flush(); | 119 m_layerBridge->flush(); |
120 } | 120 } |
121 | 121 |
122 RefPtr<Canvas2DLayerBridge> m_layerBridge; | 122 RefPtr<Canvas2DLayerBridge> m_layerBridge; |
123 }; | 123 }; |
124 | 124 |
125 } // namespace blink | 125 } // namespace blink |
126 | 126 |
127 #endif | 127 #endif |
OLD | NEW |