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

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

Issue 6677142: rename getBitmapDC to beginPlatformPaint and add calls to endPlatformPaint (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments 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/platform_canvas_mac.cc ('k') | skia/ext/platform_device_win.h » ('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) 2006-2008 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 #include <windows.h> 5 #include <windows.h>
6 #include <psapi.h> 6 #include <psapi.h>
7 7
8 #include "skia/ext/bitmap_platform_device_win.h" 8 #include "skia/ext/bitmap_platform_device_win.h"
9 #include "skia/ext/platform_canvas.h" 9 #include "skia/ext/platform_canvas.h"
10 10
11 namespace skia { 11 namespace skia {
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 } 99 }
100 100
101 bool PlatformCanvas::initialize(int width, 101 bool PlatformCanvas::initialize(int width,
102 int height, 102 int height,
103 bool is_opaque, 103 bool is_opaque,
104 HANDLE shared_section) { 104 HANDLE shared_section) {
105 return initializeWithDevice(BitmapPlatformDevice::create( 105 return initializeWithDevice(BitmapPlatformDevice::create(
106 width, height, is_opaque, shared_section)); 106 width, height, is_opaque, shared_section));
107 } 107 }
108 108
109 HDC PlatformCanvas::beginPlatformPaint() { 109 HDC PlatformCanvas::beginPlatformPaint() const {
110 return getTopPlatformDevice().getBitmapDC(); 110 return getTopPlatformDevice().beginPlatformPaint();
111 } 111 }
112 112
113 void PlatformCanvas::endPlatformPaint() { 113 void PlatformCanvas::endPlatformPaint() const {
114 // we don't clear the DC here since it will be likely to be used again 114 // we don't clear the DC here since it will be likely to be used again
115 // flushing will be done in onAccessBitmap 115 // flushing will be done in onAccessBitmap
116 return getTopPlatformDevice().endPlatformPaint();
116 } 117 }
117 118
118 } // namespace skia 119 } // namespace skia
OLDNEW
« no previous file with comments | « skia/ext/platform_canvas_mac.cc ('k') | skia/ext/platform_device_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698