OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 29 matching lines...) Expand all Loading... |
40 class TextureManager; | 40 class TextureManager; |
41 class TextureUploader; | 41 class TextureUploader; |
42 | 42 |
43 class CCRendererClient { | 43 class CCRendererClient { |
44 public: | 44 public: |
45 virtual const IntSize& deviceViewportSize() const = 0; | 45 virtual const IntSize& deviceViewportSize() const = 0; |
46 virtual const CCLayerTreeSettings& settings() const = 0; | 46 virtual const CCLayerTreeSettings& settings() const = 0; |
47 virtual void didLoseContext() = 0; | 47 virtual void didLoseContext() = 0; |
48 virtual void onSwapBuffersComplete() = 0; | 48 virtual void onSwapBuffersComplete() = 0; |
49 virtual void setFullRootLayerDamage() = 0; | 49 virtual void setFullRootLayerDamage() = 0; |
50 virtual void setContentsMemoryAllocationLimitBytes(size_t) = 0; | 50 virtual void releaseContentsTextures() = 0; |
| 51 virtual void setMemoryAllocationLimitBytes(size_t) = 0; |
51 }; | 52 }; |
52 | 53 |
53 class CCRenderer { | 54 class CCRenderer { |
54 WTF_MAKE_NONCOPYABLE(CCRenderer); | 55 WTF_MAKE_NONCOPYABLE(CCRenderer); |
55 public: | 56 public: |
56 virtual ~CCRenderer() { } | 57 virtual ~CCRenderer() { } |
57 | 58 |
58 virtual const LayerRendererCapabilities& capabilities() const = 0; | 59 virtual const LayerRendererCapabilities& capabilities() const = 0; |
59 | 60 |
60 const CCLayerTreeSettings& settings() const { return m_client->settings(); } | 61 const CCLayerTreeSettings& settings() const { return m_client->settings(); } |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 } | 103 } |
103 | 104 |
104 CCRendererClient* m_client; | 105 CCRendererClient* m_client; |
105 WebKit::WebTransformationMatrix m_projectionMatrix; | 106 WebKit::WebTransformationMatrix m_projectionMatrix; |
106 WebKit::WebTransformationMatrix m_windowMatrix; | 107 WebKit::WebTransformationMatrix m_windowMatrix; |
107 }; | 108 }; |
108 | 109 |
109 } | 110 } |
110 | 111 |
111 #endif // CCRenderer_h | 112 #endif // CCRenderer_h |
OLD | NEW |