| 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 26 matching lines...) Expand all Loading... |
| 37 #include "wtf/OwnPtr.h" | 37 #include "wtf/OwnPtr.h" |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 class PLATFORM_EXPORT AcceleratedImageBufferSurface : public ImageBufferSurface
{ | 41 class PLATFORM_EXPORT AcceleratedImageBufferSurface : public ImageBufferSurface
{ |
| 42 WTF_MAKE_NONCOPYABLE(AcceleratedImageBufferSurface); WTF_MAKE_FAST_ALLOCATED
; | 42 WTF_MAKE_NONCOPYABLE(AcceleratedImageBufferSurface); WTF_MAKE_FAST_ALLOCATED
; |
| 43 public: | 43 public: |
| 44 AcceleratedImageBufferSurface(const IntSize&, OpacityMode = NonOpaque, int m
saaSampleCount = 0); | 44 AcceleratedImageBufferSurface(const IntSize&, OpacityMode = NonOpaque, int m
saaSampleCount = 0); |
| 45 virtual ~AcceleratedImageBufferSurface() { } | 45 virtual ~AcceleratedImageBufferSurface() { } |
| 46 | 46 |
| 47 virtual SkCanvas* canvas() const OVERRIDE { return m_surface ? m_surface->ge
tCanvas() : 0; } | 47 virtual SkCanvas* canvas() const override { return m_surface ? m_surface->ge
tCanvas() : 0; } |
| 48 virtual bool isValid() const OVERRIDE { return m_surface; } | 48 virtual bool isValid() const override { return m_surface; } |
| 49 virtual bool isAccelerated() const OVERRIDE { return true; } | 49 virtual bool isAccelerated() const override { return true; } |
| 50 virtual Platform3DObject getBackingTexture() const OVERRIDE; | 50 virtual Platform3DObject getBackingTexture() const override; |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 OwnPtr<SkSurface> m_surface; | 53 OwnPtr<SkSurface> m_surface; |
| 54 OwnPtr<blink::WebGraphicsContext3DProvider> m_contextProvider; | 54 OwnPtr<blink::WebGraphicsContext3DProvider> m_contextProvider; |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 | 57 |
| 58 } // namespace blink | 58 } // namespace blink |
| 59 | 59 |
| 60 #endif | 60 #endif |
| OLD | NEW |