| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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 CC_OUTPUT_GL_RENDERER_H_ | 5 #ifndef CC_OUTPUT_GL_RENDERER_H_ |
| 6 #define CC_OUTPUT_GL_RENDERER_H_ | 6 #define CC_OUTPUT_GL_RENDERER_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 void RestoreFramebuffer(DrawingFrame* frame); | 258 void RestoreFramebuffer(DrawingFrame* frame); |
| 259 | 259 |
| 260 void DiscardBackbuffer() override; | 260 void DiscardBackbuffer() override; |
| 261 void EnsureBackbuffer() override; | 261 void EnsureBackbuffer() override; |
| 262 void EnforceMemoryPolicy(); | 262 void EnforceMemoryPolicy(); |
| 263 | 263 |
| 264 void ScheduleCALayers(DrawingFrame* frame); | 264 void ScheduleCALayers(DrawingFrame* frame); |
| 265 void ScheduleOverlays(DrawingFrame* frame); | 265 void ScheduleOverlays(DrawingFrame* frame); |
| 266 | 266 |
| 267 using OverlayResourceLock = | 267 using OverlayResourceLock = |
| 268 std::unique_ptr<ResourceProvider::ScopedReadLockGpuMemoryBuffer>; | 268 std::unique_ptr<ResourceProvider::ScopedReadLockGL>; |
| 269 using OverlayResourceLockList = std::vector<OverlayResourceLock>; | 269 using OverlayResourceLockList = std::vector<OverlayResourceLock>; |
| 270 | 270 |
| 271 // Resources that have been sent to the GPU process, but not yet swapped. | 271 // Resources that have been sent to the GPU process, but not yet swapped. |
| 272 OverlayResourceLockList pending_overlay_resources_; | 272 OverlayResourceLockList pending_overlay_resources_; |
| 273 | 273 |
| 274 // Resources that should be shortly swapped by the GPU process. | 274 // Resources that should be shortly swapped by the GPU process. |
| 275 std::deque<OverlayResourceLockList> swapping_overlay_resources_; | 275 std::deque<OverlayResourceLockList> swapping_overlay_resources_; |
| 276 | 276 |
| 277 // Resources that the GPU process has finished swapping. The key is the | 277 // Resources that the GPU process has finished swapping. The key is the |
| 278 // texture id of the resource. | 278 // texture id of the resource. |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 | 534 |
| 535 SkBitmap on_demand_tile_raster_bitmap_; | 535 SkBitmap on_demand_tile_raster_bitmap_; |
| 536 ResourceId on_demand_tile_raster_resource_id_; | 536 ResourceId on_demand_tile_raster_resource_id_; |
| 537 BoundGeometry bound_geometry_; | 537 BoundGeometry bound_geometry_; |
| 538 DISALLOW_COPY_AND_ASSIGN(GLRenderer); | 538 DISALLOW_COPY_AND_ASSIGN(GLRenderer); |
| 539 }; | 539 }; |
| 540 | 540 |
| 541 } // namespace cc | 541 } // namespace cc |
| 542 | 542 |
| 543 #endif // CC_OUTPUT_GL_RENDERER_H_ | 543 #endif // CC_OUTPUT_GL_RENDERER_H_ |
| OLD | NEW |