1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/gfx/scoped_ui_graphics_push_context_ios.h"
7 #import <UIKit/UIKit.h>
9 #include "base/logging.h"
13 ScopedUIGraphicsPushContext::ScopedUIGraphicsPushContext(CGContextRef context)
15 UIGraphicsPushContext(context_);
18 ScopedUIGraphicsPushContext::~ScopedUIGraphicsPushContext() {
19 DCHECK_EQ(context_, UIGraphicsGetCurrentContext());
20 UIGraphicsPopContext();