| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CCRendererSoftware_h | 5 #ifndef CCRendererSoftware_h |
| 6 #define CCRendererSoftware_h | 6 #define CCRendererSoftware_h |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "cc/direct_renderer.h" | 9 #include "cc/direct_renderer.h" |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 virtual ~SoftwareRenderer(); | 28 virtual ~SoftwareRenderer(); |
| 29 | 29 |
| 30 virtual const RendererCapabilities& capabilities() const OVERRIDE; | 30 virtual const RendererCapabilities& capabilities() const OVERRIDE; |
| 31 | 31 |
| 32 virtual void viewportChanged() OVERRIDE; | 32 virtual void viewportChanged() OVERRIDE; |
| 33 | 33 |
| 34 virtual void finish() OVERRIDE; | 34 virtual void finish() OVERRIDE; |
| 35 | 35 |
| 36 virtual bool swapBuffers() OVERRIDE; | 36 virtual bool swapBuffers() OVERRIDE; |
| 37 | 37 |
| 38 virtual void getFramebufferPixels(void *pixels, const IntRect&) OVERRIDE; | 38 virtual void getFramebufferPixels(void *pixels, const gfx::Rect&) OVERRIDE; |
| 39 | 39 |
| 40 virtual void setVisible(bool) OVERRIDE; | 40 virtual void setVisible(bool) OVERRIDE; |
| 41 | 41 |
| 42 virtual void sendManagedMemoryStats(size_t bytesVisible, size_t bytesVisible
AndNearby, size_t bytesAllocated) OVERRIDE { } | 42 virtual void sendManagedMemoryStats(size_t bytesVisible, size_t bytesVisible
AndNearby, size_t bytesAllocated) OVERRIDE { } |
| 43 | 43 |
| 44 protected: | 44 protected: |
| 45 virtual void bindFramebufferToOutputSurface(DrawingFrame&) OVERRIDE; | 45 virtual void bindFramebufferToOutputSurface(DrawingFrame&) OVERRIDE; |
| 46 virtual bool bindFramebufferToTexture(DrawingFrame&, const ScopedTexture*, c
onst gfx::Rect& framebufferRect) OVERRIDE; | 46 virtual bool bindFramebufferToTexture(DrawingFrame&, const ScopedTexture*, c
onst gfx::Rect& framebufferRect) OVERRIDE; |
| 47 virtual void setDrawViewportSize(const gfx::Size&) OVERRIDE; | 47 virtual void setDrawViewportSize(const gfx::Size&) OVERRIDE; |
| 48 virtual void enableScissorTestRect(const gfx::Rect& scissorRect) OVERRIDE; | 48 virtual void enableScissorTestRect(const gfx::Rect& scissorRect) OVERRIDE; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 73 SkCanvas* m_skCurrentCanvas; | 73 SkCanvas* m_skCurrentCanvas; |
| 74 SkPaint m_skCurrentPaint; | 74 SkPaint m_skCurrentPaint; |
| 75 scoped_ptr<ResourceProvider::ScopedWriteLockSoftware> m_currentFramebufferLo
ck; | 75 scoped_ptr<ResourceProvider::ScopedWriteLockSoftware> m_currentFramebufferLo
ck; |
| 76 | 76 |
| 77 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); | 77 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } | 80 } |
| 81 | 81 |
| 82 #endif | 82 #endif |
| OLD | NEW |