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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "content/common/gpu/gpu_command_buffer_stub.h" | 9 #include "content/common/gpu/gpu_command_buffer_stub.h" |
10 #include "content/common/gpu/image_transport_surface.h" | 10 #include "content/common/gpu/image_transport_surface.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 virtual void* GetDisplay() OVERRIDE; | 45 virtual void* GetDisplay() OVERRIDE; |
46 virtual void* GetConfig() OVERRIDE; | 46 virtual void* GetConfig() OVERRIDE; |
47 | 47 |
48 protected: | 48 protected: |
49 // ImageTransportSurface implementation. | 49 // ImageTransportSurface implementation. |
50 virtual void OnBufferPresented( | 50 virtual void OnBufferPresented( |
51 uint64 surface_handle, | 51 uint64 surface_handle, |
52 uint32 sync_point) OVERRIDE; | 52 uint32 sync_point) OVERRIDE; |
53 virtual void OnResizeViewACK() OVERRIDE; | 53 virtual void OnResizeViewACK() OVERRIDE; |
54 virtual void OnResize(gfx::Size size) OVERRIDE; | 54 virtual void OnResize(gfx::Size size) OVERRIDE; |
| 55 virtual void SetLatencyInfo( |
| 56 const WebKit::WebLatencyInfoImpl& latency_info) OVERRIDE; |
55 | 57 |
56 // GpuCommandBufferStub::DestructionObserver implementation. | 58 // GpuCommandBufferStub::DestructionObserver implementation. |
57 virtual void OnWillDestroyStub(GpuCommandBufferStub* stub) OVERRIDE; | 59 virtual void OnWillDestroyStub(GpuCommandBufferStub* stub) OVERRIDE; |
58 | 60 |
59 private: | 61 private: |
60 // A texture backing the front/back buffer. | 62 // A texture backing the front/back buffer. |
61 struct Texture { | 63 struct Texture { |
62 Texture(); | 64 Texture(); |
63 ~Texture(); | 65 ~Texture(); |
64 | 66 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 | 119 |
118 // Whether we unscheduled command buffer because of pending SwapBuffers. | 120 // Whether we unscheduled command buffer because of pending SwapBuffers. |
119 bool did_unschedule_; | 121 bool did_unschedule_; |
120 | 122 |
121 // The mailbox names used for texture exchange. Uses surface_handle as key. | 123 // The mailbox names used for texture exchange. Uses surface_handle as key. |
122 gpu::gles2::MailboxName mailbox_names_[2]; | 124 gpu::gles2::MailboxName mailbox_names_[2]; |
123 | 125 |
124 // Holds a reference to the mailbox manager for cleanup. | 126 // Holds a reference to the mailbox manager for cleanup. |
125 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_; | 127 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_; |
126 | 128 |
| 129 WebKit::WebLatencyInfoImpl latency_info_; |
127 DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface); | 130 DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface); |
128 }; | 131 }; |
129 | 132 |
130 } // namespace content | 133 } // namespace content |
131 | 134 |
132 #endif // CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ | 135 #endif // CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ |
OLD | NEW |