Add a basic settings page with a Polymer paper element which loads at chrome://md...
[chromium-blink-merge.git] / ui / gfx / scoped_ui_graphics_push_context_ios.mm
blob93cfde57d50a13ae22fdac6d2710fe7c537ac8ef
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"
11 namespace gfx {
13 ScopedUIGraphicsPushContext::ScopedUIGraphicsPushContext(CGContextRef context)
14     : context_(context) {
15   UIGraphicsPushContext(context_);
18 ScopedUIGraphicsPushContext::~ScopedUIGraphicsPushContext() {
19   DCHECK_EQ(context_, UIGraphicsGetCurrentContext());
20   UIGraphicsPopContext();
23 }  // namespace gfx