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_DELEGATING_RENDERER_H_ | 5 #ifndef CC_DELEGATING_RENDERER_H_ |
6 #define CC_DELEGATING_RENDERER_H_ | 6 #define CC_DELEGATING_RENDERER_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "cc/cc_export.h" | 9 #include "cc/cc_export.h" |
10 #include "cc/renderer.h" | 10 #include "cc/renderer.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 virtual void receiveCompositorFrameAck(const CompositorFrameAck&) OVERRIDE; | 39 virtual void receiveCompositorFrameAck(const CompositorFrameAck&) OVERRIDE; |
40 | 40 |
41 virtual bool isContextLost() OVERRIDE; | 41 virtual bool isContextLost() OVERRIDE; |
42 | 42 |
43 virtual void setVisible(bool) OVERRIDE; | 43 virtual void setVisible(bool) OVERRIDE; |
44 | 44 |
45 virtual void sendManagedMemoryStats(size_t bytes_visible, | 45 virtual void sendManagedMemoryStats(size_t bytes_visible, |
46 size_t bytes_visible_and_nearby, | 46 size_t bytes_visible_and_nearby, |
47 size_t bytes_allocated) OVERRIDE {} | 47 size_t bytes_allocated) OVERRIDE {} |
48 | 48 |
| 49 virtual void setLatencyInfo(const WebKit::WebLatencyInfoImpl&) OVERRIDE {} |
| 50 |
49 // WebGraphicsContext3D::WebGraphicsContextLostCallback implementation. | 51 // WebGraphicsContext3D::WebGraphicsContextLostCallback implementation. |
50 virtual void onContextLost() OVERRIDE; | 52 virtual void onContextLost() OVERRIDE; |
51 | 53 |
52 private: | 54 private: |
53 DelegatingRenderer(RendererClient* client, | 55 DelegatingRenderer(RendererClient* client, |
54 ResourceProvider* resource_provider); | 56 ResourceProvider* resource_provider); |
55 bool Initialize(); | 57 bool Initialize(); |
56 | 58 |
57 ResourceProvider* resource_provider_; | 59 ResourceProvider* resource_provider_; |
58 RendererCapabilities capabilities_; | 60 RendererCapabilities capabilities_; |
59 bool visible_; | 61 bool visible_; |
60 | 62 |
61 DISALLOW_COPY_AND_ASSIGN(DelegatingRenderer); | 63 DISALLOW_COPY_AND_ASSIGN(DelegatingRenderer); |
62 }; | 64 }; |
63 | 65 |
64 } // namespace cc | 66 } // namespace cc |
65 | 67 |
66 #endif // CC_DELEGATING_RENDERER_H_ | 68 #endif // CC_DELEGATING_RENDERER_H_ |
OLD | NEW |