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

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

Issue 7019013: Removal of dependencies on PlatformDevice classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Syncing merge conflicts. Created 9 years, 6 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/vector_platform_device_emf_win.h ('k') | skia/ext/vector_platform_device_skia.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) 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 #include <windows.h> 5 #include <windows.h>
6 6
7 #include "skia/ext/vector_platform_device_emf_win.h" 7 #include "skia/ext/vector_platform_device_emf_win.h"
8 8
9 #include "skia/ext/bitmap_platform_device.h" 9 #include "skia/ext/bitmap_platform_device.h"
10 #include "skia/ext/skia_utils_win.h" 10 #include "skia/ext/skia_utils_win.h"
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 void VectorPlatformDeviceEmf::setMatrixClip(const SkMatrix& transform, 428 void VectorPlatformDeviceEmf::setMatrixClip(const SkMatrix& transform,
429 const SkRegion& region, 429 const SkRegion& region,
430 const SkClipStack&) { 430 const SkClipStack&) {
431 transform_ = transform; 431 transform_ = transform;
432 LoadTransformToDC(hdc_, transform_); 432 LoadTransformToDC(hdc_, transform_);
433 clip_region_ = region; 433 clip_region_ = region;
434 if (!clip_region_.isEmpty()) 434 if (!clip_region_.isEmpty())
435 LoadClipRegion(); 435 LoadClipRegion();
436 } 436 }
437 437
438 void VectorPlatformDeviceEmf::drawToHDC(HDC dc, int x, int y, 438 void VectorPlatformDeviceEmf::DrawToNativeContext(HDC dc, int x, int y,
439 const RECT* src_rect) { 439 const RECT* src_rect) {
440 SkASSERT(false); 440 SkASSERT(false);
441 } 441 }
442 442
443 void VectorPlatformDeviceEmf::LoadClipRegion() { 443 void VectorPlatformDeviceEmf::LoadClipRegion() {
444 SkMatrix t; 444 SkMatrix t;
445 t.reset(); 445 t.reset();
446 LoadClippingRegionToDC(hdc_, clip_region_, t); 446 LoadClippingRegionToDC(hdc_, clip_region_, t);
447 } 447 }
448 448
449 bool VectorPlatformDeviceEmf::CreateBrush(bool use_brush, COLORREF color) { 449 bool VectorPlatformDeviceEmf::CreateBrush(bool use_brush, COLORREF color) {
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 DIB_RGB_COLORS, 728 DIB_RGB_COLORS,
729 SRCCOPY); 729 SRCCOPY);
730 SkASSERT(result); 730 SkASSERT(result);
731 } 731 }
732 EndPlatformPaint(); 732 EndPlatformPaint();
733 Cleanup(); 733 Cleanup();
734 } 734 }
735 735
736 } // namespace skia 736 } // namespace skia
737 737
OLDNEW
« no previous file with comments | « skia/ext/vector_platform_device_emf_win.h ('k') | skia/ext/vector_platform_device_skia.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698