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

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

Issue 2502413004: WTF/std normalization: replace WTF::Vector::last with ::back (Closed)
Patch Set: rebase Created 4 years, 1 month 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 #ifndef BaseRenderingContext2D_h 5 #ifndef BaseRenderingContext2D_h
6 #define BaseRenderingContext2D_h 6 #define BaseRenderingContext2D_h
7 7
8 #include "bindings/modules/v8/CSSImageValueOrHTMLImageElementOrHTMLVideoElementO rHTMLCanvasElementOrImageBitmapOrOffscreenCanvas.h" 8 #include "bindings/modules/v8/CSSImageValueOrHTMLImageElementOrHTMLVideoElementO rHTMLCanvasElementOrImageBitmapOrOffscreenCanvas.h"
9 #include "bindings/modules/v8/StringOrCanvasGradientOrCanvasPattern.h" 9 #include "bindings/modules/v8/StringOrCanvasGradientOrCanvasPattern.h"
10 #include "core/html/ImageData.h" 10 #include "core/html/ImageData.h"
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 UsageCounters(); 289 UsageCounters();
290 }; 290 };
291 291
292 const UsageCounters& getUsage(); 292 const UsageCounters& getUsage();
293 293
294 protected: 294 protected:
295 BaseRenderingContext2D(); 295 BaseRenderingContext2D();
296 296
297 CanvasRenderingContext2DState& modifiableState(); 297 CanvasRenderingContext2DState& modifiableState();
298 const CanvasRenderingContext2DState& state() const { 298 const CanvasRenderingContext2DState& state() const {
299 return *m_stateStack.last(); 299 return *m_stateStack.back();
300 } 300 }
301 301
302 bool computeDirtyRect(const FloatRect& localBounds, SkIRect*); 302 bool computeDirtyRect(const FloatRect& localBounds, SkIRect*);
303 bool computeDirtyRect(const FloatRect& localBounds, 303 bool computeDirtyRect(const FloatRect& localBounds,
304 const SkIRect& transformedClipBounds, 304 const SkIRect& transformedClipBounds,
305 SkIRect*); 305 SkIRect*);
306 306
307 template <typename DrawFunc, typename ContainsFunc> 307 template <typename DrawFunc, typename ContainsFunc>
308 bool draw(const DrawFunc&, 308 bool draw(const DrawFunc&,
309 const ContainsFunc&, 309 const ContainsFunc&,
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 foregroundPaint.setBlendMode(SkBlendMode::kSrcOver); 466 foregroundPaint.setBlendMode(SkBlendMode::kSrcOver);
467 c->setMatrix(ctm); 467 c->setMatrix(ctm);
468 drawFunc(c, &foregroundPaint); 468 drawFunc(c, &foregroundPaint);
469 c->restore(); 469 c->restore();
470 c->setMatrix(ctm); 470 c->setMatrix(ctm);
471 } 471 }
472 472
473 } // namespace blink 473 } // namespace blink
474 474
475 #endif // BaseRenderingContext2D_h 475 #endif // BaseRenderingContext2D_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698