OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_IMAGE_TRANSPORT_SURFACE_FBO_MAC_H_ | 5 #ifndef CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_FBO_MAC_H_ |
6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_FBO_MAC_H_ | 6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_FBO_MAC_H_ |
7 | 7 |
8 #include "base/mac/scoped_cftyperef.h" | 8 #include "base/mac/scoped_cftyperef.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "content/common/gpu/gpu_command_buffer_stub.h" | 10 #include "content/common/gpu/gpu_command_buffer_stub.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 void SetRendererID(int renderer_id); | 90 void SetRendererID(int renderer_id); |
91 | 91 |
92 const gpu::gles2::FeatureInfo* GetFeatureInfo() const; | 92 const gpu::gles2::FeatureInfo* GetFeatureInfo() const; |
93 | 93 |
94 protected: | 94 protected: |
95 // ImageTransportSurface implementation | 95 // ImageTransportSurface implementation |
96 void OnBufferPresented( | 96 void OnBufferPresented( |
97 const AcceleratedSurfaceMsg_BufferPresented_Params& params) override; | 97 const AcceleratedSurfaceMsg_BufferPresented_Params& params) override; |
98 void OnResize(gfx::Size pixel_size, float scale_factor) override; | 98 void OnResize(gfx::Size pixel_size, float scale_factor) override; |
99 void SetLatencyInfo(const std::vector<ui::LatencyInfo>&) override; | 99 void SetLatencyInfo(const std::vector<ui::LatencyInfo>&) override; |
100 void WakeUpGpu() override; | |
101 | 100 |
102 // GpuCommandBufferStub::DestructionObserver implementation. | 101 // GpuCommandBufferStub::DestructionObserver implementation. |
103 void OnWillDestroyStub() override; | 102 void OnWillDestroyStub() override; |
104 | 103 |
105 private: | 104 private: |
106 ~ImageTransportSurfaceFBO() override; | 105 ~ImageTransportSurfaceFBO() override; |
107 | 106 |
108 void AdjustBufferAllocation(); | 107 void AdjustBufferAllocation(); |
109 void DestroyFramebuffer(); | 108 void DestroyFramebuffer(); |
110 void AllocateOrResizeFramebuffer( | 109 void AllocateOrResizeFramebuffer( |
(...skipping 27 matching lines...) Expand all Loading... |
138 gfx::Rect pending_swap_pixel_damage_rect_; | 137 gfx::Rect pending_swap_pixel_damage_rect_; |
139 | 138 |
140 scoped_ptr<ImageTransportHelper> helper_; | 139 scoped_ptr<ImageTransportHelper> helper_; |
141 | 140 |
142 DISALLOW_COPY_AND_ASSIGN(ImageTransportSurfaceFBO); | 141 DISALLOW_COPY_AND_ASSIGN(ImageTransportSurfaceFBO); |
143 }; | 142 }; |
144 | 143 |
145 } // namespace content | 144 } // namespace content |
146 | 145 |
147 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_FBO_MAC_H_ | 146 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_FBO_MAC_H_ |
OLD | NEW |