| 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 CC_OUTPUT_SOFTWARE_RENDERER_H_ | 5 #ifndef CC_OUTPUT_SOFTWARE_RENDERER_H_ |
| 6 #define CC_OUTPUT_SOFTWARE_RENDERER_H_ | 6 #define CC_OUTPUT_SOFTWARE_RENDERER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "cc/base/cc_export.h" | 9 #include "cc/base/cc_export.h" |
| 10 #include "cc/output/compositor_frame.h" | 10 #include "cc/output/compositor_frame.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 class CC_EXPORT SoftwareRenderer : public DirectRenderer { | 28 class CC_EXPORT SoftwareRenderer : public DirectRenderer { |
| 29 public: | 29 public: |
| 30 static scoped_ptr<SoftwareRenderer> Create( | 30 static scoped_ptr<SoftwareRenderer> Create( |
| 31 RendererClient* client, | 31 RendererClient* client, |
| 32 OutputSurface* output_surface, | 32 OutputSurface* output_surface, |
| 33 ResourceProvider* resource_provider); | 33 ResourceProvider* resource_provider); |
| 34 | 34 |
| 35 virtual ~SoftwareRenderer(); | 35 virtual ~SoftwareRenderer(); |
| 36 virtual const RendererCapabilities& Capabilities() const OVERRIDE; | 36 virtual const RendererCapabilities& Capabilities() const OVERRIDE; |
| 37 virtual void Finish() OVERRIDE; | 37 //virtual void Finish() OVERRIDE; |
| 38 virtual void SwapBuffers() OVERRIDE; | 38 virtual void SwapBuffers() OVERRIDE; |
| 39 virtual void GetFramebufferPixels(void* pixels, gfx::Rect rect) OVERRIDE; | 39 virtual void GetFramebufferPixels(void* pixels, gfx::Rect rect) OVERRIDE; |
| 40 virtual void SetVisible(bool visible) OVERRIDE; | 40 virtual void SetVisible(bool visible) OVERRIDE; |
| 41 virtual void SendManagedMemoryStats( | 41 virtual void SendManagedMemoryStats( |
| 42 size_t bytes_visible, | 42 size_t bytes_visible, |
| 43 size_t bytes_visible_and_nearby, | 43 size_t bytes_visible_and_nearby, |
| 44 size_t bytes_allocated) OVERRIDE {} | 44 size_t bytes_allocated) OVERRIDE {} |
| 45 virtual void ReceiveSwapBuffersAck( | 45 virtual void ReceiveSwapBuffersAck( |
| 46 const CompositorFrameAck& ack) OVERRIDE; | 46 const CompositorFrameAck& ack) OVERRIDE; |
| 47 | 47 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 scoped_ptr<ResourceProvider::ScopedWriteLockSoftware> | 103 scoped_ptr<ResourceProvider::ScopedWriteLockSoftware> |
| 104 current_framebuffer_lock_; | 104 current_framebuffer_lock_; |
| 105 scoped_ptr<SoftwareFrameData> current_frame_data_; | 105 scoped_ptr<SoftwareFrameData> current_frame_data_; |
| 106 | 106 |
| 107 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); | 107 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); |
| 108 }; | 108 }; |
| 109 | 109 |
| 110 } // namespace cc | 110 } // namespace cc |
| 111 | 111 |
| 112 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_ | 112 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_ |
| OLD | NEW |