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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 virtual void* GetShareHandle() OVERRIDE; | 44 virtual void* GetShareHandle() OVERRIDE; |
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 const AcceleratedSurfaceMsg_BufferPresented_Params& params) OVERRIDE; | 51 const AcceleratedSurfaceMsg_BufferPresented_Params& params) OVERRIDE; |
52 virtual void OnResizeViewACK() OVERRIDE; | 52 virtual void OnResizeViewACK() OVERRIDE; |
53 virtual void OnResize(gfx::Size size) OVERRIDE; | 53 virtual void OnResize(gfx::Size size) OVERRIDE; |
| 54 virtual void SetLatencyInfo( |
| 55 const cc::LatencyInfo& latency_info) OVERRIDE; |
54 | 56 |
55 // GpuCommandBufferStub::DestructionObserver implementation. | 57 // GpuCommandBufferStub::DestructionObserver implementation. |
56 virtual void OnWillDestroyStub(GpuCommandBufferStub* stub) OVERRIDE; | 58 virtual void OnWillDestroyStub(GpuCommandBufferStub* stub) OVERRIDE; |
57 | 59 |
58 private: | 60 private: |
59 // A texture backing the front/back buffer. | 61 // A texture backing the front/back buffer. |
60 struct Texture { | 62 struct Texture { |
61 Texture(); | 63 Texture(); |
62 ~Texture(); | 64 ~Texture(); |
63 | 65 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 | 111 |
110 // Whether a SwapBuffers is pending. | 112 // Whether a SwapBuffers is pending. |
111 bool is_swap_buffers_pending_; | 113 bool is_swap_buffers_pending_; |
112 | 114 |
113 // Whether we unscheduled command buffer because of pending SwapBuffers. | 115 // Whether we unscheduled command buffer because of pending SwapBuffers. |
114 bool did_unschedule_; | 116 bool did_unschedule_; |
115 | 117 |
116 // Holds a reference to the mailbox manager for cleanup. | 118 // Holds a reference to the mailbox manager for cleanup. |
117 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_; | 119 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_; |
118 | 120 |
| 121 cc::LatencyInfo latency_info_; |
119 DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface); | 122 DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface); |
120 }; | 123 }; |
121 | 124 |
122 } // namespace content | 125 } // namespace content |
123 | 126 |
124 #endif // CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ | 127 #endif // CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ |
OLD | NEW |