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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/GeneratedImage.h

Issue 1482953002: Drop dependency on LayoutObject in fetch/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile fix Created 5 years 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) 2008 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2008 Apple Computer, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 void destroyDecodedData(bool) override { } 48 void destroyDecodedData(bool) override { }
49 49
50 PassRefPtr<SkImage> imageForCurrentFrame() override; 50 PassRefPtr<SkImage> imageForCurrentFrame() override;
51 51
52 protected: 52 protected:
53 void drawPattern(GraphicsContext*, const FloatRect&, 53 void drawPattern(GraphicsContext*, const FloatRect&,
54 const FloatSize&, const FloatPoint&, SkXfermode::Mode, 54 const FloatSize&, const FloatPoint&, SkXfermode::Mode,
55 const FloatRect&, const IntSize& repeatSpacing) final; 55 const FloatRect&, const IntSize& repeatSpacing) final;
56 56
57 // FIXME: Implement this to be less conservative. 57 // FIXME: Implement this to be less conservative.
58 bool currentFrameKnownToBeOpaque() override { return false; } 58 bool currentFrameKnownToBeOpaque(MetadataMode = UseCurrentMetadata) override { return false; }
59 59
60 GeneratedImage(const IntSize& size) : m_size(size) { } 60 GeneratedImage(const IntSize& size) : m_size(size) { }
61 61
62 virtual void drawTile(GraphicsContext*, const FloatRect&) = 0; 62 virtual void drawTile(GraphicsContext*, const FloatRect&) = 0;
63 63
64 IntSize m_size; 64 IntSize m_size;
65 }; 65 };
66 66
67 } // namespace blink 67 } // namespace blink
68 68
69 #endif 69 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/BitmapImage.cpp ('k') | third_party/WebKit/Source/platform/graphics/Image.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698