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

Side by Side Diff: ui/gfx/canvas_skia_paint_mac.cc

Issue 6879013: skia::PlatformCanvas is being deprecated. Going forward we will use gfx::Canvas wherever we need ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « ui/gfx/canvas_skia_paint_mac.h ('k') | ui/gfx/canvas_skia_paint_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2011 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.
4
5 #include "ui/gfx/canvas_skia_paint_mac.h"
6
7 #include "base/logging.h"
8 #include "ui/gfx/canvas_skia.h"
9 #include "ui/gfx/rect.h"
10
11 namespace gfx {
12
13 CanvasSkiaPaint::CanvasSkiaPaint(NSRect dirty_rect, bool opaque) {
14 }
15
16 CanvasSkiaPaint::~CanvasSkiaPaint() {
17 canvas_->skia_canvas()->restoreToCount(1);
18 }
19
20 bool CanvasSkiaPaint::IsValid() const {
21 return true;
22 }
23
24 gfx::Rect CanvasSkiaPaint::GetInvalidRect() const {
25 return gfx::Rect();
26 }
27
28 Canvas* CanvasSkiaPaint::AsCanvas() {
29 return canvas_.get();
30 }
31
32 bool CanvasSkiaPaint::InitCanvas() {
33 canvas_.reset(new CanvasSkia);
34 return false;
35 }
36
37 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/canvas_skia_paint_mac.h ('k') | ui/gfx/canvas_skia_paint_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698