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

Side by Side Diff: Source/WebCore/platform/graphics/Pattern.cpp

Issue 9599019: Merge 109171 - [chromium] Inform v8 about extra memory used for PatternSkia clamp mode (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 3 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 19 matching lines...) Expand all
30 #include "Image.h" 30 #include "Image.h"
31 31
32 namespace WebCore { 32 namespace WebCore {
33 33
34 Pattern::Pattern(PassRefPtr<Image> image, bool repeatX, bool repeatY) 34 Pattern::Pattern(PassRefPtr<Image> image, bool repeatX, bool repeatY)
35 : m_tileImage(image) 35 : m_tileImage(image)
36 , m_repeatX(repeatX) 36 , m_repeatX(repeatX)
37 , m_repeatY(repeatY) 37 , m_repeatY(repeatY)
38 #if USE(SKIA) 38 #if USE(SKIA)
39 , m_pattern(0) 39 , m_pattern(0)
40 , m_externalMemoryAllocated(0)
40 #endif 41 #endif
41 { 42 {
42 ASSERT(m_tileImage); 43 ASSERT(m_tileImage);
43 } 44 }
44 45
45 Pattern::~Pattern() 46 Pattern::~Pattern()
46 { 47 {
47 platformDestroy(); 48 platformDestroy();
48 } 49 }
49 50
50 void Pattern::setPatternSpaceTransform(const AffineTransform& patternSpaceTransf ormation) 51 void Pattern::setPatternSpaceTransform(const AffineTransform& patternSpaceTransf ormation)
51 { 52 {
52 m_patternSpaceTransformation = patternSpaceTransformation; 53 m_patternSpaceTransformation = patternSpaceTransformation;
53 setPlatformPatternSpaceTransform(); 54 setPlatformPatternSpaceTransform();
54 } 55 }
55 56
56 #if !USE(SKIA) 57 #if !USE(SKIA)
57 void Pattern::platformDestroy() 58 void Pattern::platformDestroy()
58 { 59 {
59 } 60 }
60 61
61 void Pattern::setPlatformPatternSpaceTransform() 62 void Pattern::setPlatformPatternSpaceTransform()
62 { 63 {
63 } 64 }
64 #endif 65 #endif
65 66
66 } 67 }
OLDNEW
« no previous file with comments | « Source/WebCore/platform/graphics/Pattern.h ('k') | Source/WebCore/platform/graphics/skia/PatternSkia.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698