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

Side by Side Diff: Source/platform/graphics/GraphicsContext.cpp

Issue 1165553007: Remove unused GC::beginRecording flags (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « Source/platform/graphics/GraphicsContext.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
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 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 void GraphicsContext::endLayer() 431 void GraphicsContext::endLayer()
432 { 432 {
433 if (contextDisabled()) 433 if (contextDisabled())
434 return; 434 return;
435 435
436 restoreLayer(); 436 restoreLayer();
437 437
438 ASSERT(m_layerCount-- > 0); 438 ASSERT(m_layerCount-- > 0);
439 } 439 }
440 440
441 void GraphicsContext::beginRecording(const FloatRect& bounds, uint32_t recordFla gs) 441 void GraphicsContext::beginRecording(const FloatRect& bounds)
442 { 442 {
443 if (contextDisabled()) 443 if (contextDisabled())
444 return; 444 return;
445 445
446 if (RuntimeEnabledFeatures::slimmingPaintEnabled()) { 446 if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
447 m_canvas = m_pictureRecorder.beginRecording(bounds, 0, recordFlags); 447 m_canvas = m_pictureRecorder.beginRecording(bounds, 0);
448 return; 448 return;
449 } 449 }
450 450
451 m_recordingStateStack.append( 451 m_recordingStateStack.append(
452 RecordingState::Create(m_canvas, getTotalMatrix())); 452 RecordingState::Create(m_canvas, getTotalMatrix()));
453 m_canvas = m_recordingStateStack.last()->recorder().beginRecording(bounds, 0 , recordFlags); 453 m_canvas = m_recordingStateStack.last()->recorder().beginRecording(bounds, 0 );
454 } 454 }
455 455
456 PassRefPtr<const SkPicture> GraphicsContext::endRecording() 456 PassRefPtr<const SkPicture> GraphicsContext::endRecording()
457 { 457 {
458 if (contextDisabled()) 458 if (contextDisabled())
459 return nullptr; 459 return nullptr;
460 460
461 if (RuntimeEnabledFeatures::slimmingPaintEnabled()) { 461 if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
462 RefPtr<const SkPicture> picture = adoptRef(m_pictureRecorder.endRecordin gAsPicture()); 462 RefPtr<const SkPicture> picture = adoptRef(m_pictureRecorder.endRecordin gAsPicture());
463 m_canvas = m_originalCanvas; 463 m_canvas = m_originalCanvas;
(...skipping 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after
1719 // being returned from computeInterpolationQuality. 1719 // being returned from computeInterpolationQuality.
1720 resampling = InterpolationLow; 1720 resampling = InterpolationLow;
1721 } 1721 }
1722 resampling = limitInterpolationQuality(this, resampling); 1722 resampling = limitInterpolationQuality(this, resampling);
1723 paint->setFilterQuality(static_cast<SkFilterQuality>(resampling)); 1723 paint->setFilterQuality(static_cast<SkFilterQuality>(resampling));
1724 1724
1725 return initialSaveCount; 1725 return initialSaveCount;
1726 } 1726 }
1727 1727
1728 } // namespace blink 1728 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/graphics/GraphicsContext.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698