Index: ui/gfx/canvas_skia_paint_win.h |
=================================================================== |
--- ui/gfx/canvas_skia_paint_win.h (revision 0) |
+++ ui/gfx/canvas_skia_paint_win.h (revision 0) |
@@ -0,0 +1,37 @@ |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef UI_GFX_CANVAS_SKIA_PAINT_WIN_H_ |
+#define UI_GFX_CANVAS_SKIA_PAINT_WIN_H_ |
+#pragma once |
+ |
+#include "base/scoped_ptr.h" |
+#include "ui/gfx/canvas.h" |
+ |
+namespace gfx { |
+ |
+class CanvasSkia; |
+ |
+class CanvasSkiaPaint : public CanvasPaint { |
+ public: |
+ explicit CanvasSkiaPaint(gfx::NativeView view); |
+ virtual ~CanvasSkiaPaint(); |
+ |
+ // Overridden from CanvasPaint: |
+ virtual bool IsValid() const; |
+ virtual gfx::Rect GetInvalidRect() const; |
+ virtual Canvas* AsCanvas(); |
+ |
+private: |
+ bool InitCanvas(); |
+ |
+ HWND hwnd_; |
+ HDC paint_dc_; |
+ PAINTSTRUCT ps_; |
+ |
+ scoped_ptr<CanvasSkia> canvas_; |
+}; |
+ |
+} // namespace gfx |
+#endif // UI_GFX_CANVAS_SKIA_PAINT_WIN_H_ |
Property changes on: ui\gfx\canvas_skia_paint_win.h |
___________________________________________________________________ |
Added: svn:eol-style |
+ LF |