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

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

Issue 6588012: roll skia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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_win.h ('k') | skia/skia.gyp » ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_win.h" 7 #include "skia/ext/vector_platform_device_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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 408
409 // These aren't used in the code. Verify this assumption. 409 // These aren't used in the code. Verify this assumption.
410 SkASSERT(!paint.getColorFilter()); 410 SkASSERT(!paint.getColorFilter());
411 SkASSERT(!paint.getRasterizer()); 411 SkASSERT(!paint.getRasterizer());
412 // Reuse code to load Win32 Fonts. 412 // Reuse code to load Win32 Fonts.
413 SkASSERT(!paint.getTypeface()); 413 SkASSERT(!paint.getTypeface());
414 return true; 414 return true;
415 } 415 }
416 416
417 void VectorPlatformDevice::setMatrixClip(const SkMatrix& transform, 417 void VectorPlatformDevice::setMatrixClip(const SkMatrix& transform,
418 const SkRegion& region) { 418 const SkRegion& region,
419 const SkClipStack&) {
419 transform_ = transform; 420 transform_ = transform;
420 LoadTransformToDC(hdc_, transform_); 421 LoadTransformToDC(hdc_, transform_);
421 clip_region_ = region; 422 clip_region_ = region;
422 if (!clip_region_.isEmpty()) 423 if (!clip_region_.isEmpty())
423 LoadClipRegion(); 424 LoadClipRegion();
424 } 425 }
425 426
426 void VectorPlatformDevice::drawToHDC(HDC dc, int x, int y, 427 void VectorPlatformDevice::drawToHDC(HDC dc, int x, int y,
427 const RECT* src_rect) { 428 const RECT* src_rect) {
428 SkASSERT(false); 429 SkASSERT(false);
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 reinterpret_cast<const BITMAPINFO*>(&hdr), 715 reinterpret_cast<const BITMAPINFO*>(&hdr),
715 DIB_RGB_COLORS, 716 DIB_RGB_COLORS,
716 SRCCOPY); 717 SRCCOPY);
717 SkASSERT(result); 718 SkASSERT(result);
718 } 719 }
719 Cleanup(); 720 Cleanup();
720 } 721 }
721 722
722 } // namespace skia 723 } // namespace skia
723 724
OLDNEW
« no previous file with comments | « skia/ext/vector_platform_device_win.h ('k') | skia/skia.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698