| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "platform/graphics/Canvas2DLayerBridge.h" | 26 #include "platform/graphics/Canvas2DLayerBridge.h" |
| 27 | 27 |
| 28 #include "base/memory/ptr_util.h" | 28 #include "base/memory/ptr_util.h" |
| 29 #include "cc/resources/single_release_callback.h" | 29 #include "cc/resources/single_release_callback.h" |
| 30 #include "cc/resources/texture_mailbox.h" | 30 #include "cc/resources/texture_mailbox.h" |
| 31 #include "gpu/command_buffer/client/gles2_interface.h" | 31 #include "gpu/command_buffer/client/gles2_interface.h" |
| 32 #include "platform/Histogram.h" | 32 #include "platform/Histogram.h" |
| 33 #include "platform/RuntimeEnabledFeatures.h" | 33 #include "platform/RuntimeEnabledFeatures.h" |
| 34 #include "platform/TraceEvent.h" | |
| 35 #include "platform/graphics/CanvasMetrics.h" | 34 #include "platform/graphics/CanvasMetrics.h" |
| 36 #include "platform/graphics/ExpensiveCanvasHeuristicParameters.h" | 35 #include "platform/graphics/ExpensiveCanvasHeuristicParameters.h" |
| 37 #include "platform/graphics/GraphicsLayer.h" | 36 #include "platform/graphics/GraphicsLayer.h" |
| 38 #include "platform/graphics/ImageBuffer.h" | 37 #include "platform/graphics/ImageBuffer.h" |
| 39 #include "platform/graphics/gpu/SharedContextRateLimiter.h" | 38 #include "platform/graphics/gpu/SharedContextRateLimiter.h" |
| 39 #include "platform/tracing/TraceEvent.h" |
| 40 #include "public/platform/Platform.h" | 40 #include "public/platform/Platform.h" |
| 41 #include "public/platform/WebCompositorSupport.h" | 41 #include "public/platform/WebCompositorSupport.h" |
| 42 #include "public/platform/WebGraphicsContext3DProvider.h" | 42 #include "public/platform/WebGraphicsContext3DProvider.h" |
| 43 #include "public/platform/WebScheduler.h" | 43 #include "public/platform/WebScheduler.h" |
| 44 #include "public/platform/WebTraceLocation.h" | 44 #include "public/platform/WebTraceLocation.h" |
| 45 #include "skia/ext/texture_handle.h" | 45 #include "skia/ext/texture_handle.h" |
| 46 #include "third_party/skia/include/core/SkData.h" | 46 #include "third_party/skia/include/core/SkData.h" |
| 47 #include "third_party/skia/include/core/SkPictureRecorder.h" | 47 #include "third_party/skia/include/core/SkPictureRecorder.h" |
| 48 #include "third_party/skia/include/core/SkSurface.h" | 48 #include "third_party/skia/include/core/SkSurface.h" |
| 49 #include "third_party/skia/include/gpu/GrContext.h" | 49 #include "third_party/skia/include/gpu/GrContext.h" |
| (...skipping 963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1013 Canvas2DLayerBridge::MailboxInfo::MailboxInfo() = default; | 1013 Canvas2DLayerBridge::MailboxInfo::MailboxInfo() = default; |
| 1014 Canvas2DLayerBridge::MailboxInfo::MailboxInfo(const MailboxInfo& other) = defaul
t; | 1014 Canvas2DLayerBridge::MailboxInfo::MailboxInfo(const MailboxInfo& other) = defaul
t; |
| 1015 | 1015 |
| 1016 void Canvas2DLayerBridge::Logger::reportHibernationEvent(HibernationEvent event) | 1016 void Canvas2DLayerBridge::Logger::reportHibernationEvent(HibernationEvent event) |
| 1017 { | 1017 { |
| 1018 DEFINE_STATIC_LOCAL(EnumerationHistogram, hibernationHistogram, ("Canvas.Hib
ernationEvents", HibernationEventCount)); | 1018 DEFINE_STATIC_LOCAL(EnumerationHistogram, hibernationHistogram, ("Canvas.Hib
ernationEvents", HibernationEventCount)); |
| 1019 hibernationHistogram.count(event); | 1019 hibernationHistogram.count(event); |
| 1020 } | 1020 } |
| 1021 | 1021 |
| 1022 } // namespace blink | 1022 } // namespace blink |
| OLD | NEW |