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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 gfx::Size pixel_size_; | 126 gfx::Size pixel_size_; |
127 gfx::Size rounded_pixel_size_; | 127 gfx::Size rounded_pixel_size_; |
128 float scale_factor_; | 128 float scale_factor_; |
129 | 129 |
130 // Whether or not we've successfully made the surface current once. | 130 // Whether or not we've successfully made the surface current once. |
131 bool made_current_; | 131 bool made_current_; |
132 | 132 |
133 // Whether a SwapBuffers IPC needs to be sent to the browser. | 133 // Whether a SwapBuffers IPC needs to be sent to the browser. |
134 bool is_swap_buffers_send_pending_; | 134 bool is_swap_buffers_send_pending_; |
135 std::vector<ui::LatencyInfo> latency_info_; | 135 std::vector<ui::LatencyInfo> latency_info_; |
| 136 gfx::Rect pending_swap_pixel_damage_rect_; |
136 | 137 |
137 scoped_ptr<ImageTransportHelper> helper_; | 138 scoped_ptr<ImageTransportHelper> helper_; |
138 | 139 |
139 DISALLOW_COPY_AND_ASSIGN(ImageTransportSurfaceFBO); | 140 DISALLOW_COPY_AND_ASSIGN(ImageTransportSurfaceFBO); |
140 }; | 141 }; |
141 | 142 |
142 } // namespace content | 143 } // namespace content |
143 | 144 |
144 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_FBO_MAC_H_ | 145 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_FBO_MAC_H_ |
OLD | NEW |