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

Side by Side Diff: third_party/WebKit/Source/modules/csspaint/PaintRenderingContext2D.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 months 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/csspaint/PaintRenderingContext2D.h" 5 #include "modules/csspaint/PaintRenderingContext2D.h"
6 6
7 #include <memory>
7 #include "platform/graphics/ImageBuffer.h" 8 #include "platform/graphics/ImageBuffer.h"
8 #include "platform/graphics/paint/PaintCanvas.h" 9 #include "platform/graphics/paint/PaintCanvas.h"
9 #include <memory>
10 10
11 namespace blink { 11 namespace blink {
12 12
13 PaintRenderingContext2D::PaintRenderingContext2D( 13 PaintRenderingContext2D::PaintRenderingContext2D(
14 std::unique_ptr<ImageBuffer> imageBuffer, 14 std::unique_ptr<ImageBuffer> imageBuffer,
15 bool hasAlpha, 15 bool hasAlpha,
16 float zoom) 16 float zoom)
17 : m_imageBuffer(std::move(imageBuffer)), m_hasAlpha(hasAlpha) { 17 : m_imageBuffer(std::move(imageBuffer)), m_hasAlpha(hasAlpha) {
18 m_clipAntialiasing = AntiAliased; 18 m_clipAntialiasing = AntiAliased;
19 modifiableState().setShouldAntialias(true); 19 modifiableState().setShouldAntialias(true);
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 void PaintRenderingContext2D::validateStateStack() const { 74 void PaintRenderingContext2D::validateStateStack() const {
75 #if DCHECK_IS_ON() 75 #if DCHECK_IS_ON()
76 if (PaintCanvas* skCanvas = existingDrawingCanvas()) { 76 if (PaintCanvas* skCanvas = existingDrawingCanvas()) {
77 DCHECK_EQ(static_cast<size_t>(skCanvas->getSaveCount()), 77 DCHECK_EQ(static_cast<size_t>(skCanvas->getSaveCount()),
78 m_stateStack.size() + 1); 78 m_stateStack.size() + 1);
79 } 79 }
80 #endif 80 #endif
81 } 81 }
82 82
83 } // namespace blink 83 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698