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 15 matching lines...) Expand all Loading... |
26 public: | 26 public: |
27 static scoped_ptr<SoftwareRenderer> Create( | 27 static scoped_ptr<SoftwareRenderer> Create( |
28 RendererClient* client, | 28 RendererClient* client, |
29 OutputSurface* output_surface, | 29 OutputSurface* output_surface, |
30 ResourceProvider* resource_provider); | 30 ResourceProvider* resource_provider); |
31 | 31 |
32 virtual ~SoftwareRenderer(); | 32 virtual ~SoftwareRenderer(); |
33 virtual const RendererCapabilities& Capabilities() const OVERRIDE; | 33 virtual const RendererCapabilities& Capabilities() const OVERRIDE; |
34 virtual void ViewportChanged() OVERRIDE; | 34 virtual void ViewportChanged() OVERRIDE; |
35 virtual void Finish() OVERRIDE; | 35 virtual void Finish() OVERRIDE; |
36 virtual bool SwapBuffers() OVERRIDE; | 36 virtual bool SwapBuffers(const LatencyInfo& latency_info) OVERRIDE; |
37 virtual void GetFramebufferPixels(void* pixels, gfx::Rect rect) OVERRIDE; | 37 virtual void GetFramebufferPixels(void* pixels, gfx::Rect rect) OVERRIDE; |
38 virtual void SetVisible(bool visible) OVERRIDE; | 38 virtual void SetVisible(bool visible) OVERRIDE; |
39 virtual void SendManagedMemoryStats( | 39 virtual void SendManagedMemoryStats( |
40 size_t bytes_visible, | 40 size_t bytes_visible, |
41 size_t bytes_visible_and_nearby, | 41 size_t bytes_visible_and_nearby, |
42 size_t bytes_allocated) OVERRIDE {} | 42 size_t bytes_allocated) OVERRIDE {} |
43 virtual void ReceiveCompositorFrameAck( | 43 virtual void ReceiveCompositorFrameAck( |
44 const CompositorFrameAck& ack) OVERRIDE; | 44 const CompositorFrameAck& ack) OVERRIDE; |
45 | 45 |
46 protected: | 46 protected: |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 scoped_ptr<ResourceProvider::ScopedWriteLockSoftware> | 96 scoped_ptr<ResourceProvider::ScopedWriteLockSoftware> |
97 current_framebuffer_lock_; | 97 current_framebuffer_lock_; |
98 CompositorFrame compositor_frame_; | 98 CompositorFrame compositor_frame_; |
99 | 99 |
100 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); | 100 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); |
101 }; | 101 }; |
102 | 102 |
103 } // namespace cc | 103 } // namespace cc |
104 | 104 |
105 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_ | 105 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_ |
OLD | NEW |