OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_ACCELERATED_SURFACE_CONTAINER_LINUX_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_LINUX_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_LINUX_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_LINUX_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "ui/gfx/compositor/compositor.h" | 10 #include "ui/gfx/compositor/compositor.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 // The |surface_id| given to this function may be modified, and the modified | 24 // The |surface_id| given to this function may be modified, and the modified |
25 // value should be used to identify the object. | 25 // value should be used to identify the object. |
26 virtual bool Initialize(uint64* surface_id) = 0; | 26 virtual bool Initialize(uint64* surface_id) = 0; |
27 | 27 |
28 // Some implementations of this class use shared memory, this is the handle | 28 // Some implementations of this class use shared memory, this is the handle |
29 // to the shared buffer, which is part of the surface container. | 29 // to the shared buffer, which is part of the surface container. |
30 virtual TransportDIB::Handle Handle() const = 0; | 30 virtual TransportDIB::Handle Handle() const = 0; |
31 | 31 |
32 virtual ui::Texture* GetTexture() = 0; | 32 virtual ui::Texture* GetTexture() = 0; |
33 | 33 |
| 34 virtual const gfx::Size& GetSize() = 0; |
| 35 |
34 static AcceleratedSurfaceContainerLinux* Create(const gfx::Size& size); | 36 static AcceleratedSurfaceContainerLinux* Create(const gfx::Size& size); |
35 }; | 37 }; |
36 | 38 |
37 #endif // CONTENT_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_LINUX_H_ | 39 #endif // CONTENT_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_LINUX_H_ |
OLD | NEW |