Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Side by Side Diff: third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp

Issue 2555213002: Implement color management for ImageData (Closed)
Patch Set: Work in progress Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "modules/canvas2d/BaseRenderingContext2D.h" 5 #include "modules/canvas2d/BaseRenderingContext2D.h"
6 6
7 #include "bindings/core/v8/ExceptionMessages.h" 7 #include "bindings/core/v8/ExceptionMessages.h"
8 #include "bindings/core/v8/ExceptionState.h" 8 #include "bindings/core/v8/ExceptionState.h"
9 #include "bindings/core/v8/ExceptionStatePlaceholder.h" 9 #include "bindings/core/v8/ExceptionStatePlaceholder.h"
10 #include "core/css/cssom/CSSURLImageValue.h" 10 #include "core/css/cssom/CSSURLImageValue.h"
11 #include "core/css/parser/CSSParser.h" 11 #include "core/css/parser/CSSParser.h"
12 #include "core/frame/ImageBitmap.h" 12 #include "core/frame/ImageBitmap.h"
13 #include "core/html/Float32ImageData.h"
Justin Novosad 2016/12/08 18:16:35 Why?
zakerinasab 2016/12/08 20:40:52 Removed for now.
13 #include "core/html/HTMLCanvasElement.h" 14 #include "core/html/HTMLCanvasElement.h"
14 #include "core/html/HTMLImageElement.h" 15 #include "core/html/HTMLImageElement.h"
15 #include "core/html/HTMLVideoElement.h" 16 #include "core/html/HTMLVideoElement.h"
16 #include "core/html/ImageData.h" 17 #include "core/html/ImageData.h"
17 #include "core/offscreencanvas/OffscreenCanvas.h" 18 #include "core/offscreencanvas/OffscreenCanvas.h"
18 #include "modules/canvas2d/CanvasGradient.h" 19 #include "modules/canvas2d/CanvasGradient.h"
19 #include "modules/canvas2d/CanvasPattern.h" 20 #include "modules/canvas2d/CanvasPattern.h"
20 #include "modules/canvas2d/CanvasStyle.h" 21 #include "modules/canvas2d/CanvasStyle.h"
21 #include "modules/canvas2d/Path2D.h" 22 #include "modules/canvas2d/Path2D.h"
22 #include "platform/Histogram.h" 23 #include "platform/Histogram.h"
(...skipping 1990 matching lines...) Expand 10 before | Expand all | Expand 10 after
2013 ExpensiveCanvasHeuristicParameters::ShadowFixedCost[index] * 2014 ExpensiveCanvasHeuristicParameters::ShadowFixedCost[index] *
2014 m_usageCounters.numBlurredShadows + 2015 m_usageCounters.numBlurredShadows +
2015 ExpensiveCanvasHeuristicParameters:: 2016 ExpensiveCanvasHeuristicParameters::
2016 ShadowVariableCostPerAreaTimesShadowBlurSquared[index] * 2017 ShadowVariableCostPerAreaTimesShadowBlurSquared[index] *
2017 m_usageCounters.boundingBoxAreaTimesShadowBlurSquared; 2018 m_usageCounters.boundingBoxAreaTimesShadowBlurSquared;
2018 2019
2019 return basicCostOfDrawCalls + fillTypeAdjustment + shadowAdjustment; 2020 return basicCostOfDrawCalls + fillTypeAdjustment + shadowAdjustment;
2020 } 2021 }
2021 2022
2022 } // namespace blink 2023 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698