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

Side by Side Diff: skia/ext/platform_canvas_win.cc

Issue 19491: POSIX: bitmap data on the wire (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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/platform_canvas_win.h ('k') | no next file » | 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #include <windows.h> 5 #include <windows.h>
6 #include <psapi.h> 6 #include <psapi.h>
7 7
8 #include "skia/ext/platform_canvas_win.h" 8 #include "skia/ext/platform_canvas_win.h"
9 9
10 #include "skia/ext/bitmap_platform_device_win.h" 10 #include "skia/ext/bitmap_platform_device_win.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 is_opaque, shared_section); 111 is_opaque, shared_section);
112 ReleaseDC(NULL, screen_dc); 112 ReleaseDC(NULL, screen_dc);
113 return device; 113 return device;
114 } 114 }
115 115
116 SkDevice* PlatformCanvasWin::setBitmapDevice(const SkBitmap&) { 116 SkDevice* PlatformCanvasWin::setBitmapDevice(const SkBitmap&) {
117 SkASSERT(false); // Should not be called. 117 SkASSERT(false); // Should not be called.
118 return NULL; 118 return NULL;
119 } 119 }
120 120
121 // static
122 size_t PlatformCanvasWin::StrideForWidth(unsigned width) {
123 return 4 * width;
124 }
125
121 } // namespace skia 126 } // namespace skia
OLDNEW
« no previous file with comments | « skia/ext/platform_canvas_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698