OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_BROWSER_RENDERER_HOST_SOFTWARE_FRAME_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_SOFTWARE_FRAME_MANAGER_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_SOFTWARE_FRAME_MANAGER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_SOFTWARE_FRAME_MANAGER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 cc::TextureMailbox* mailbox, | 57 cc::TextureMailbox* mailbox, |
58 scoped_ptr<cc::SingleReleaseCallback>* callback); | 58 scoped_ptr<cc::SingleReleaseCallback>* callback); |
59 void* GetCurrentFramePixels() const; | 59 void* GetCurrentFramePixels() const; |
60 float GetCurrentFrameDeviceScaleFactor() const; | 60 float GetCurrentFrameDeviceScaleFactor() const; |
61 gfx::Size GetCurrentFrameSizeInPixels() const; | 61 gfx::Size GetCurrentFrameSizeInPixels() const; |
62 gfx::Size GetCurrentFrameSizeInDIP() const; | 62 gfx::Size GetCurrentFrameSizeInDIP() const; |
63 | 63 |
64 private: | 64 private: |
65 // Called by SoftwareFrameMemoryManager to demand that the current frame | 65 // Called by SoftwareFrameMemoryManager to demand that the current frame |
66 // be evicted. | 66 // be evicted. |
67 virtual void EvictCurrentFrame() OVERRIDE; | 67 virtual void EvictCurrentFrame() override; |
68 | 68 |
69 base::WeakPtr<SoftwareFrameManagerClient> client_; | 69 base::WeakPtr<SoftwareFrameManagerClient> client_; |
70 | 70 |
71 // This holds the current software framebuffer. | 71 // This holds the current software framebuffer. |
72 scoped_refptr<SoftwareFrame> current_frame_; | 72 scoped_refptr<SoftwareFrame> current_frame_; |
73 | 73 |
74 DISALLOW_COPY_AND_ASSIGN(SoftwareFrameManager); | 74 DISALLOW_COPY_AND_ASSIGN(SoftwareFrameManager); |
75 }; | 75 }; |
76 | 76 |
77 } // namespace content | 77 } // namespace content |
78 | 78 |
79 #endif // CONTENT_BROWSER_RENDERER_HOST_SOFTWARE_FRAME_MANAGER_H_ | 79 #endif // CONTENT_BROWSER_RENDERER_HOST_SOFTWARE_FRAME_MANAGER_H_ |
OLD | NEW |