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

Side by Side Diff: sky/engine/core/rendering/RenderImage.h

Issue 710743006: Remove ResourceLoadPriorityOptimizer. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/core/rendering/RenderBlock.cpp ('k') | sky/engine/core/rendering/RenderImage.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2006 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2006 Allan Sandfeld Jensen (kde@carewolf.com)
5 * (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 5 * (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 protected: 64 protected:
65 virtual bool needsPreferredWidthsRecalculation() const override final; 65 virtual bool needsPreferredWidthsRecalculation() const override final;
66 virtual void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, doub le& intrinsicRatio) const override final; 66 virtual void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, doub le& intrinsicRatio) const override final;
67 67
68 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) override; 68 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) override;
69 69
70 void paintIntoRect(GraphicsContext*, const LayoutRect&); 70 void paintIntoRect(GraphicsContext*, const LayoutRect&);
71 virtual void paint(PaintInfo&, const LayoutPoint&) override final; 71 virtual void paint(PaintInfo&, const LayoutPoint&) override final;
72 virtual void layout() override; 72 virtual void layout() override;
73 virtual bool updateImageLoadingPriorities() override final;
74 73
75 private: 74 private:
76 virtual const char* renderName() const override { return "RenderImage"; } 75 virtual const char* renderName() const override { return "RenderImage"; }
77 76
78 virtual bool isImage() const override { return true; } 77 virtual bool isImage() const override { return true; }
79 virtual bool isRenderImage() const override final { return true; } 78 virtual bool isRenderImage() const override final { return true; }
80 79
81 virtual void paintReplaced(PaintInfo&, const LayoutPoint&) override; 80 virtual void paintReplaced(PaintInfo&, const LayoutPoint&) override;
82 81
83 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect, unsigned maxDepthToTest) const override final; 82 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect, unsigned maxDepthToTest) const override final;
(...skipping 20 matching lines...) Expand all
104 float m_imageDevicePixelRatio; 103 float m_imageDevicePixelRatio;
105 104
106 friend class RenderImageScaleObserver; 105 friend class RenderImageScaleObserver;
107 }; 106 };
108 107
109 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderImage, isRenderImage()); 108 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderImage, isRenderImage());
110 109
111 } // namespace blink 110 } // namespace blink
112 111
113 #endif // RenderImage_h 112 #endif // RenderImage_h
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderBlock.cpp ('k') | sky/engine/core/rendering/RenderImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698