| 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 #include "cc/raster/gpu_raster_buffer_provider.h" | 5 #include "cc/raster/gpu_raster_buffer_provider.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
| 13 #include "base/metrics/histogram_macros.h" | 13 #include "base/metrics/histogram_macros.h" |
| 14 #include "base/trace_event/trace_event.h" | 14 #include "base/trace_event/trace_event.h" |
| 15 #include "cc/base/histograms.h" | 15 #include "cc/base/histograms.h" |
| 16 #include "cc/paint/paint_canvas.h" | 16 #include "cc/paint/paint_canvas.h" |
| 17 #include "cc/playback/image_hijack_canvas.h" | 17 #include "cc/raster/image_hijack_canvas.h" |
| 18 #include "cc/playback/raster_source.h" | 18 #include "cc/raster/raster_source.h" |
| 19 #include "cc/raster/scoped_gpu_raster.h" | 19 #include "cc/raster/scoped_gpu_raster.h" |
| 20 #include "cc/resources/resource.h" | 20 #include "cc/resources/resource.h" |
| 21 #include "gpu/command_buffer/client/context_support.h" | 21 #include "gpu/command_buffer/client/context_support.h" |
| 22 #include "gpu/command_buffer/client/gles2_interface.h" | 22 #include "gpu/command_buffer/client/gles2_interface.h" |
| 23 #include "third_party/skia/include/core/SkMultiPictureDraw.h" | 23 #include "third_party/skia/include/core/SkMultiPictureDraw.h" |
| 24 #include "third_party/skia/include/core/SkPictureRecorder.h" | 24 #include "third_party/skia/include/core/SkPictureRecorder.h" |
| 25 #include "third_party/skia/include/core/SkSurface.h" | 25 #include "third_party/skia/include/core/SkSurface.h" |
| 26 #include "third_party/skia/include/gpu/GrContext.h" | 26 #include "third_party/skia/include/gpu/GrContext.h" |
| 27 | 27 |
| 28 namespace cc { | 28 namespace cc { |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 gl->OrderingBarrierCHROMIUM(); | 269 gl->OrderingBarrierCHROMIUM(); |
| 270 | 270 |
| 271 // Generate sync token after the barrier for cross context synchronization. | 271 // Generate sync token after the barrier for cross context synchronization. |
| 272 gpu::SyncToken resource_sync_token; | 272 gpu::SyncToken resource_sync_token; |
| 273 gl->GenUnverifiedSyncTokenCHROMIUM(fence_sync, resource_sync_token.GetData()); | 273 gl->GenUnverifiedSyncTokenCHROMIUM(fence_sync, resource_sync_token.GetData()); |
| 274 resource_lock->set_sync_token(resource_sync_token); | 274 resource_lock->set_sync_token(resource_sync_token); |
| 275 resource_lock->set_synchronized(!async_worker_context_enabled_); | 275 resource_lock->set_synchronized(!async_worker_context_enabled_); |
| 276 } | 276 } |
| 277 | 277 |
| 278 } // namespace cc | 278 } // namespace cc |
| OLD | NEW |