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 #include <public/WebCompositorSoftwareOutputDevice.h> | 10 #include <public/WebCompositorSoftwareOutputDevice.h> |
(...skipping 14 matching lines...) Expand all Loading... |
25 virtual ~SoftwareRenderer(); | 25 virtual ~SoftwareRenderer(); |
26 | 26 |
27 virtual const RendererCapabilities& capabilities() const OVERRIDE; | 27 virtual const RendererCapabilities& capabilities() const OVERRIDE; |
28 | 28 |
29 virtual void viewportChanged() OVERRIDE; | 29 virtual void viewportChanged() OVERRIDE; |
30 | 30 |
31 virtual void finish() OVERRIDE; | 31 virtual void finish() OVERRIDE; |
32 | 32 |
33 virtual bool swapBuffers() OVERRIDE; | 33 virtual bool swapBuffers() OVERRIDE; |
34 | 34 |
35 virtual void getFramebufferPixels(void *pixels, const IntRect&) OVERRIDE; | 35 virtual void getFramebufferPixels(void *pixels, const gfx::Rect&) OVERRIDE; |
36 | 36 |
37 virtual void setVisible(bool) OVERRIDE; | 37 virtual void setVisible(bool) OVERRIDE; |
38 | 38 |
39 protected: | 39 protected: |
40 virtual void bindFramebufferToOutputSurface(DrawingFrame&) OVERRIDE; | 40 virtual void bindFramebufferToOutputSurface(DrawingFrame&) OVERRIDE; |
41 virtual bool bindFramebufferToTexture(DrawingFrame&, const ScopedTexture*, c
onst gfx::Rect& framebufferRect) OVERRIDE; | 41 virtual bool bindFramebufferToTexture(DrawingFrame&, const ScopedTexture*, c
onst gfx::Rect& framebufferRect) OVERRIDE; |
42 virtual void setDrawViewportSize(const gfx::Size&) OVERRIDE; | 42 virtual void setDrawViewportSize(const gfx::Size&) OVERRIDE; |
43 virtual void enableScissorTestRect(const gfx::Rect& scissorRect) OVERRIDE; | 43 virtual void enableScissorTestRect(const gfx::Rect& scissorRect) OVERRIDE; |
44 virtual void disableScissorTest() OVERRIDE; | 44 virtual void disableScissorTest() OVERRIDE; |
45 virtual void clearFramebuffer(DrawingFrame&) OVERRIDE; | 45 virtual void clearFramebuffer(DrawingFrame&) OVERRIDE; |
(...skipping 22 matching lines...) Expand all Loading... |
68 SkCanvas* m_skCurrentCanvas; | 68 SkCanvas* m_skCurrentCanvas; |
69 SkPaint m_skCurrentPaint; | 69 SkPaint m_skCurrentPaint; |
70 scoped_ptr<ResourceProvider::ScopedWriteLockSoftware> m_currentFramebufferLo
ck; | 70 scoped_ptr<ResourceProvider::ScopedWriteLockSoftware> m_currentFramebufferLo
ck; |
71 | 71 |
72 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); | 72 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); |
73 }; | 73 }; |
74 | 74 |
75 } | 75 } |
76 | 76 |
77 #endif | 77 #endif |
OLD | NEW |