OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ | 5 #ifndef CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ |
6 #define CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ | 6 #define CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 // gfx::GLSurface implementation. | 31 // gfx::GLSurface implementation. |
32 virtual bool Initialize() OVERRIDE; | 32 virtual bool Initialize() OVERRIDE; |
33 virtual void Destroy() OVERRIDE; | 33 virtual void Destroy() OVERRIDE; |
34 virtual bool DeferDraws() OVERRIDE; | 34 virtual bool DeferDraws() OVERRIDE; |
35 virtual bool IsOffscreen() OVERRIDE; | 35 virtual bool IsOffscreen() OVERRIDE; |
36 virtual bool SwapBuffers() OVERRIDE; | 36 virtual bool SwapBuffers() OVERRIDE; |
37 virtual gfx::Size GetSize() OVERRIDE; | 37 virtual gfx::Size GetSize() OVERRIDE; |
38 virtual void* GetHandle() OVERRIDE; | 38 virtual void* GetHandle() OVERRIDE; |
39 virtual unsigned GetFormat() OVERRIDE; | 39 virtual unsigned GetFormat() OVERRIDE; |
40 virtual std::string GetExtensions() OVERRIDE; | 40 virtual bool SupportsPostSubBuffer() OVERRIDE; |
41 virtual unsigned int GetBackingFrameBufferObject() OVERRIDE; | 41 virtual unsigned int GetBackingFrameBufferObject() OVERRIDE; |
42 virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE; | 42 virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE; |
43 virtual bool SetBackbufferAllocation(bool allocated) OVERRIDE; | 43 virtual bool SetBackbufferAllocation(bool allocated) OVERRIDE; |
44 virtual void SetFrontbufferAllocation(bool allocated) OVERRIDE; | 44 virtual void SetFrontbufferAllocation(bool allocated) OVERRIDE; |
45 virtual void* GetShareHandle() OVERRIDE; | 45 virtual void* GetShareHandle() OVERRIDE; |
46 virtual void* GetDisplay() OVERRIDE; | 46 virtual void* GetDisplay() OVERRIDE; |
47 virtual void* GetConfig() OVERRIDE; | 47 virtual void* GetConfig() OVERRIDE; |
48 | 48 |
49 protected: | 49 protected: |
50 // ImageTransportSurface implementation. | 50 // ImageTransportSurface implementation. |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 // Holds a reference to the mailbox manager for cleanup. | 116 // Holds a reference to the mailbox manager for cleanup. |
117 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_; | 117 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_; |
118 | 118 |
119 std::vector<ui::LatencyInfo> latency_info_; | 119 std::vector<ui::LatencyInfo> latency_info_; |
120 DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface); | 120 DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface); |
121 }; | 121 }; |
122 | 122 |
123 } // namespace content | 123 } // namespace content |
124 | 124 |
125 #endif // CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ | 125 #endif // CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ |
OLD | NEW |