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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 virtual void Destroy() OVERRIDE; | 29 virtual void Destroy() OVERRIDE; |
30 virtual bool Resize(const gfx::Size& size) OVERRIDE; | 30 virtual bool Resize(const gfx::Size& size) OVERRIDE; |
31 virtual bool IsOffscreen() OVERRIDE; | 31 virtual bool IsOffscreen() OVERRIDE; |
32 virtual bool SwapBuffers() OVERRIDE; | 32 virtual bool SwapBuffers() OVERRIDE; |
33 virtual gfx::Size GetSize() OVERRIDE; | 33 virtual gfx::Size GetSize() OVERRIDE; |
34 virtual void* GetHandle() OVERRIDE; | 34 virtual void* GetHandle() OVERRIDE; |
35 virtual std::string GetExtensions() OVERRIDE; | 35 virtual std::string GetExtensions() OVERRIDE; |
36 virtual unsigned int GetBackingFrameBufferObject() OVERRIDE; | 36 virtual unsigned int GetBackingFrameBufferObject() OVERRIDE; |
37 virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE; | 37 virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE; |
38 virtual bool OnMakeCurrent(gfx::GLContext* context) OVERRIDE; | 38 virtual bool OnMakeCurrent(gfx::GLContext* context) OVERRIDE; |
39 virtual void SetVisibility(VisibilityState visibility_state) OVERRIDE; | 39 virtual void SetBufferAllocation(BufferAllocationState state) OVERRIDE; |
40 virtual void* GetShareHandle() OVERRIDE; | 40 virtual void* GetShareHandle() OVERRIDE; |
41 virtual void* GetDisplay() OVERRIDE; | 41 virtual void* GetDisplay() OVERRIDE; |
42 virtual void* GetConfig() OVERRIDE; | 42 virtual void* GetConfig() OVERRIDE; |
43 | 43 |
44 protected: | 44 protected: |
45 // ImageTransportSurface implementation. | 45 // ImageTransportSurface implementation. |
46 virtual void OnNewSurfaceACK( | 46 virtual void OnNewSurfaceACK( |
47 uint64 surface_handle, TransportDIB::Handle shm_handle) OVERRIDE; | 47 uint64 surface_handle, TransportDIB::Handle shm_handle) OVERRIDE; |
48 virtual void OnBuffersSwappedACK() OVERRIDE; | 48 virtual void OnBuffersSwappedACK() OVERRIDE; |
49 virtual void OnPostSubBufferACK() OVERRIDE; | 49 virtual void OnPostSubBufferACK() OVERRIDE; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 // Whether or not the command buffer stub has been destroyed. | 90 // Whether or not the command buffer stub has been destroyed. |
91 bool stub_destroyed_; | 91 bool stub_destroyed_; |
92 | 92 |
93 scoped_ptr<ImageTransportHelper> helper_; | 93 scoped_ptr<ImageTransportHelper> helper_; |
94 base::WeakPtr<GpuCommandBufferStub> parent_stub_; | 94 base::WeakPtr<GpuCommandBufferStub> parent_stub_; |
95 | 95 |
96 DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface); | 96 DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface); |
97 }; | 97 }; |
98 | 98 |
99 #endif // CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ | 99 #endif // CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ |
OLD | NEW |