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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. |
51 virtual void OnBufferPresented( | 51 virtual void OnBufferPresented( |
52 const AcceleratedSurfaceMsg_BufferPresented_Params& params) OVERRIDE; | 52 const AcceleratedSurfaceMsg_BufferPresented_Params& params) OVERRIDE; |
53 virtual void OnResizeViewACK() OVERRIDE; | 53 virtual void OnResizeViewACK() OVERRIDE; |
54 virtual void OnResize(gfx::Size size, float scale_factor) OVERRIDE; | 54 virtual void OnResize(gfx::Size size, float scale_factor) OVERRIDE; |
55 virtual void SetLatencyInfo( | 55 virtual void SetLatencyInfo( |
56 const ui::LatencyInfo& latency_info) OVERRIDE; | 56 const std::vector<ui::LatencyInfo>& latency_info) OVERRIDE; |
57 virtual void WakeUpGpu() OVERRIDE; | 57 virtual void WakeUpGpu() OVERRIDE; |
58 | 58 |
59 // GpuCommandBufferStub::DestructionObserver implementation. | 59 // GpuCommandBufferStub::DestructionObserver implementation. |
60 virtual void OnWillDestroyStub() OVERRIDE; | 60 virtual void OnWillDestroyStub() OVERRIDE; |
61 | 61 |
62 private: | 62 private: |
63 | 63 |
64 gfx::Size backbuffer_size() const { | 64 gfx::Size backbuffer_size() const { |
65 DCHECK(backbuffer_.get()); | 65 DCHECK(backbuffer_.get()); |
66 GLsizei width = 0; | 66 GLsizei width = 0; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 | 109 |
110 // Whether a SwapBuffers is pending. | 110 // Whether a SwapBuffers is pending. |
111 bool is_swap_buffers_pending_; | 111 bool is_swap_buffers_pending_; |
112 | 112 |
113 // Whether we unscheduled command buffer because of pending SwapBuffers. | 113 // Whether we unscheduled command buffer because of pending SwapBuffers. |
114 bool did_unschedule_; | 114 bool did_unschedule_; |
115 | 115 |
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 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 |