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

Side by Side Diff: Source/core/fetch/ImageResource.h

Issue 526153002: Add ImageResource update bitmap images api (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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 | « no previous file | Source/core/fetch/ImageResource.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de)
3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> 3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org>
4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
5 Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 5 Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
6 6
7 This library is free software; you can redistribute it and/or 7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public 8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either 9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version. 10 version 2 of the License, or (at your option) any later version.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 bool hasDevicePixelRatioHeaderValue() const { return m_hasDevicePixelRatioHe aderValue; } 74 bool hasDevicePixelRatioHeaderValue() const { return m_hasDevicePixelRatioHe aderValue; }
75 75
76 enum SizeType { 76 enum SizeType {
77 NormalSize, // Report the size of the image associated with a certain re nderer 77 NormalSize, // Report the size of the image associated with a certain re nderer
78 IntrinsicSize // Report the intrinsic size, i.e. ignore whatever has bee n set extrinsically. 78 IntrinsicSize // Report the intrinsic size, i.e. ignore whatever has bee n set extrinsically.
79 }; 79 };
80 // This method takes a zoom multiplier that can be used to increase the natu ral size of the image by the zoom. 80 // This method takes a zoom multiplier that can be used to increase the natu ral size of the image by the zoom.
81 LayoutSize imageSizeForRenderer(const RenderObject*, float multiplier, SizeT ype = NormalSize); // returns the size of the complete image. 81 LayoutSize imageSizeForRenderer(const RenderObject*, float multiplier, SizeT ype = NormalSize); // returns the size of the complete image.
82 void computeIntrinsicDimensions(Length& intrinsicWidth, Length& intrinsicHei ght, FloatSize& intrinsicRatio); 82 void computeIntrinsicDimensions(Length& intrinsicWidth, Length& intrinsicHei ght, FloatSize& intrinsicRatio);
83 83
84 static void updateBitmapImages(HashSet<ImageResource*>&, bool redecodeImages = false);
pdr. 2014/09/03 03:05:12 I'm concerned about adding more bitmap-specific co
pdr. 2014/09/05 07:04:38 Can you change this to updateBitmapImagesForColorC
85
84 bool isAccessAllowed(SecurityOrigin*); 86 bool isAccessAllowed(SecurityOrigin*);
85 87
86 virtual void didAddClient(ResourceClient*) OVERRIDE; 88 virtual void didAddClient(ResourceClient*) OVERRIDE;
87 virtual void didRemoveClient(ResourceClient*) OVERRIDE; 89 virtual void didRemoveClient(ResourceClient*) OVERRIDE;
88 90
89 virtual void allClientsRemoved() OVERRIDE; 91 virtual void allClientsRemoved() OVERRIDE;
90 92
91 virtual void appendData(const char*, int) OVERRIDE; 93 virtual void appendData(const char*, int) OVERRIDE;
92 virtual void error(Resource::Status) OVERRIDE; 94 virtual void error(Resource::Status) OVERRIDE;
93 virtual void responseReceived(const ResourceResponse&) OVERRIDE; 95 virtual void responseReceived(const ResourceResponse&) OVERRIDE;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 OwnPtr<SVGImageCache> m_svgImageCache; 134 OwnPtr<SVGImageCache> m_svgImageCache;
133 bool m_loadingMultipartContent; 135 bool m_loadingMultipartContent;
134 bool m_hasDevicePixelRatioHeaderValue; 136 bool m_hasDevicePixelRatioHeaderValue;
135 }; 137 };
136 138
137 DEFINE_RESOURCE_TYPE_CASTS(Image); 139 DEFINE_RESOURCE_TYPE_CASTS(Image);
138 140
139 } 141 }
140 142
141 #endif 143 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/fetch/ImageResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698