| 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/playback/image_hijack_canvas.h" | 16 #include "cc/playback/image_hijack_canvas.h" |
| 17 #include "cc/playback/raster_source.h" | 17 #include "cc/playback/raster_source.h" |
| 18 #include "cc/raster/scoped_gpu_raster.h" | 18 #include "cc/raster/scoped_gpu_raster.h" |
| 19 #include "cc/resources/resource.h" | 19 #include "cc/resources/resource.h" |
| 20 #include "gpu/command_buffer/client/gles2_interface.h" | 20 #include "gpu/command_buffer/client/gles2_interface.h" |
| 21 #include "skia/ext/cdl_picture.h" |
| 22 #include "skia/ext/cdl_picture_recorder.h" |
| 21 #include "third_party/skia/include/core/SkMultiPictureDraw.h" | 23 #include "third_party/skia/include/core/SkMultiPictureDraw.h" |
| 22 #include "third_party/skia/include/core/SkPictureRecorder.h" | 24 #include "third_party/skia/include/core/SkPictureRecorder.h" |
| 23 #include "third_party/skia/include/core/SkSurface.h" | 25 #include "third_party/skia/include/core/SkSurface.h" |
| 24 #include "third_party/skia/include/gpu/GrContext.h" | 26 #include "third_party/skia/include/gpu/GrContext.h" |
| 25 | 27 |
| 26 namespace cc { | 28 namespace cc { |
| 27 namespace { | 29 namespace { |
| 28 | 30 |
| 29 static void RasterizeSource( | 31 static void RasterizeSource( |
| 30 const RasterSource* raster_source, | 32 const RasterSource* raster_source, |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 gl->OrderingBarrierCHROMIUM(); | 232 gl->OrderingBarrierCHROMIUM(); |
| 231 | 233 |
| 232 // Generate sync token after the barrier for cross context synchronization. | 234 // Generate sync token after the barrier for cross context synchronization. |
| 233 gpu::SyncToken resource_sync_token; | 235 gpu::SyncToken resource_sync_token; |
| 234 gl->GenUnverifiedSyncTokenCHROMIUM(fence_sync, resource_sync_token.GetData()); | 236 gl->GenUnverifiedSyncTokenCHROMIUM(fence_sync, resource_sync_token.GetData()); |
| 235 resource_lock->set_sync_token(resource_sync_token); | 237 resource_lock->set_sync_token(resource_sync_token); |
| 236 resource_lock->set_synchronized(!async_worker_context_enabled_); | 238 resource_lock->set_synchronized(!async_worker_context_enabled_); |
| 237 } | 239 } |
| 238 | 240 |
| 239 } // namespace cc | 241 } // namespace cc |
| OLD | NEW |