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 19 matching lines...) Expand all Loading... |
30 static scoped_ptr<SoftwareRenderer> Create( | 30 static scoped_ptr<SoftwareRenderer> Create( |
31 RendererClient* client, | 31 RendererClient* client, |
32 const LayerTreeSettings* settings, | 32 const LayerTreeSettings* settings, |
33 OutputSurface* output_surface, | 33 OutputSurface* output_surface, |
34 ResourceProvider* resource_provider); | 34 ResourceProvider* resource_provider); |
35 | 35 |
36 virtual ~SoftwareRenderer(); | 36 virtual ~SoftwareRenderer(); |
37 virtual const RendererCapabilitiesImpl& Capabilities() const OVERRIDE; | 37 virtual const RendererCapabilitiesImpl& Capabilities() const OVERRIDE; |
38 virtual void Finish() OVERRIDE; | 38 virtual void Finish() OVERRIDE; |
39 virtual void SwapBuffers(const CompositorFrameMetadata& metadata) OVERRIDE; | 39 virtual void SwapBuffers(const CompositorFrameMetadata& metadata) OVERRIDE; |
40 virtual void GetFramebufferPixels(void* pixels, | |
41 const gfx::Rect& rect) OVERRIDE; | |
42 virtual void SendManagedMemoryStats( | 40 virtual void SendManagedMemoryStats( |
43 size_t bytes_visible, | 41 size_t bytes_visible, |
44 size_t bytes_visible_and_nearby, | 42 size_t bytes_visible_and_nearby, |
45 size_t bytes_allocated) OVERRIDE {} | 43 size_t bytes_allocated) OVERRIDE {} |
46 virtual void ReceiveSwapBuffersAck( | 44 virtual void ReceiveSwapBuffersAck( |
47 const CompositorFrameAck& ack) OVERRIDE; | 45 const CompositorFrameAck& ack) OVERRIDE; |
48 virtual void DiscardBackbuffer() OVERRIDE; | 46 virtual void DiscardBackbuffer() OVERRIDE; |
49 virtual void EnsureBackbuffer() OVERRIDE; | 47 virtual void EnsureBackbuffer() OVERRIDE; |
50 | 48 |
51 protected: | 49 protected: |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 scoped_ptr<ResourceProvider::ScopedWriteLockSoftware> | 109 scoped_ptr<ResourceProvider::ScopedWriteLockSoftware> |
112 current_framebuffer_lock_; | 110 current_framebuffer_lock_; |
113 scoped_ptr<SoftwareFrameData> current_frame_data_; | 111 scoped_ptr<SoftwareFrameData> current_frame_data_; |
114 | 112 |
115 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); | 113 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); |
116 }; | 114 }; |
117 | 115 |
118 } // namespace cc | 116 } // namespace cc |
119 | 117 |
120 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_ | 118 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_ |
OLD | NEW |