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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 clear(); | 48 clear(); |
49 } | 49 } |
50 | 50 |
51 virtual ~Canvas2DImageBufferSurface() | 51 virtual ~Canvas2DImageBufferSurface() |
52 { | 52 { |
53 if (m_layerBridge) | 53 if (m_layerBridge) |
54 m_layerBridge->beginDestruction(); | 54 m_layerBridge->beginDestruction(); |
55 } | 55 } |
56 | 56 |
57 // ImageBufferSurface implementation | 57 // ImageBufferSurface implementation |
58 virtual void finalizeFrame(const FloatRect &dirtyRect) OVERRIDE { m_layerBri
dge->finalizeFrame(dirtyRect); } | 58 virtual void finalizeFrame(const FloatRect &dirtyRect) override { m_layerBri
dge->finalizeFrame(dirtyRect); } |
59 virtual void willAccessPixels() OVERRIDE { m_layerBridge->willAccessPixels()
; } | 59 virtual void willAccessPixels() override { m_layerBridge->willAccessPixels()
; } |
60 virtual SkCanvas* canvas() const OVERRIDE { return m_layerBridge->canvas();
} | 60 virtual SkCanvas* canvas() const override { return m_layerBridge->canvas();
} |
61 virtual bool isValid() const OVERRIDE { return m_layerBridge && m_layerBridg
e->checkSurfaceValid(); } | 61 virtual bool isValid() const override { return m_layerBridge && m_layerBridg
e->checkSurfaceValid(); } |
62 virtual bool restore() OVERRIDE { return m_layerBridge->restoreSurface(); } | 62 virtual bool restore() override { return m_layerBridge->restoreSurface(); } |
63 virtual WebLayer* layer() const OVERRIDE { return m_layerBridge->layer(); } | 63 virtual WebLayer* layer() const override { return m_layerBridge->layer(); } |
64 virtual Platform3DObject getBackingTexture() const OVERRIDE { return m_layer
Bridge->getBackingTexture(); } | 64 virtual Platform3DObject getBackingTexture() const override { return m_layer
Bridge->getBackingTexture(); } |
65 virtual bool isAccelerated() const OVERRIDE { return m_layerBridge->isAccele
rated(); } | 65 virtual bool isAccelerated() const override { return m_layerBridge->isAccele
rated(); } |
66 virtual void setIsHidden(bool hidden) OVERRIDE { m_layerBridge->setIsHidden(
hidden); } | 66 virtual void setIsHidden(bool hidden) override { m_layerBridge->setIsHidden(
hidden); } |
67 virtual void setImageBuffer(ImageBuffer* imageBuffer) OVERRIDE { m_layerBrid
ge->setImageBuffer(imageBuffer); } | 67 virtual void setImageBuffer(ImageBuffer* imageBuffer) override { m_layerBrid
ge->setImageBuffer(imageBuffer); } |
68 | 68 |
69 virtual PassRefPtr<SkImage> newImageSnapshot() const OVERRIDE { return m_lay
erBridge->newImageSnapshot(); } | 69 virtual PassRefPtr<SkImage> newImageSnapshot() const override { return m_lay
erBridge->newImageSnapshot(); } |
70 private: | 70 private: |
71 RefPtr<Canvas2DLayerBridge> m_layerBridge; | 71 RefPtr<Canvas2DLayerBridge> m_layerBridge; |
72 }; | 72 }; |
73 | 73 |
74 } // namespace blink | 74 } // namespace blink |
75 | 75 |
76 #endif | 76 #endif |
OLD | NEW |