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

Side by Side Diff: skia/ext/bitmap_platform_device_win.h

Issue 6691067: Fixed a few styles issues in skia::PlatformDevice. Made function names consistent. Added Begin/En... (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 | « skia/ext/bitmap_platform_device_linux.cc ('k') | skia/ext/bitmap_platform_device_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SKIA_BITMAP_PLATFORM_DEVICE_WIN_H_ 5 #ifndef SKIA_BITMAP_PLATFORM_DEVICE_WIN_H_
6 #define SKIA_BITMAP_PLATFORM_DEVICE_WIN_H_ 6 #define SKIA_BITMAP_PLATFORM_DEVICE_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include "skia/ext/platform_device_win.h" 9 #include "skia/ext/platform_device_win.h"
10 10
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 // See warning for copy constructor above. 69 // See warning for copy constructor above.
70 BitmapPlatformDevice& operator=(const BitmapPlatformDevice& other); 70 BitmapPlatformDevice& operator=(const BitmapPlatformDevice& other);
71 71
72 virtual SkDeviceFactory* getDeviceFactory() { 72 virtual SkDeviceFactory* getDeviceFactory() {
73 return SkNEW(BitmapPlatformDeviceFactory); 73 return SkNEW(BitmapPlatformDeviceFactory);
74 } 74 }
75 75
76 // Retrieves the bitmap DC, which is the memory DC for our bitmap data. The 76 // Retrieves the bitmap DC, which is the memory DC for our bitmap data. The
77 // bitmap DC is lazy created. 77 // bitmap DC is lazy created.
78 virtual HDC beginPlatformPaint(); 78 virtual PlatformSurface BeginPlatformPaint();
79 79
80 // Loads the given transform and clipping region into the HDC. This is 80 // Loads the given transform and clipping region into the HDC. This is
81 // overridden from SkDevice. 81 // overridden from SkDevice.
82 virtual void setMatrixClip(const SkMatrix& transform, const SkRegion& region, 82 virtual void setMatrixClip(const SkMatrix& transform, const SkRegion& region,
83 const SkClipStack&); 83 const SkClipStack&);
84 84
85 virtual void drawToHDC(HDC dc, int x, int y, const RECT* src_rect); 85 virtual void drawToHDC(HDC dc, int x, int y, const RECT* src_rect);
86 virtual void makeOpaque(int x, int y, int width, int height); 86 virtual void makeOpaque(int x, int y, int width, int height);
87 virtual bool IsVectorial() { return false; } 87 virtual bool IsVectorial() { return false; }
88 88
(...skipping 19 matching lines...) Expand all
108 108
109 // Data associated with this device, guaranteed non-null. We hold a reference 109 // Data associated with this device, guaranteed non-null. We hold a reference
110 // to this object. 110 // to this object.
111 BitmapPlatformDeviceData* data_; 111 BitmapPlatformDeviceData* data_;
112 }; 112 };
113 113
114 } // namespace skia 114 } // namespace skia
115 115
116 #endif // SKIA_BITMAP_PLATFORM_DEVICE_WIN_H_ 116 #endif // SKIA_BITMAP_PLATFORM_DEVICE_WIN_H_
117 117
OLDNEW
« no previous file with comments | « skia/ext/bitmap_platform_device_linux.cc ('k') | skia/ext/bitmap_platform_device_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698