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

Side by Side Diff: Source/platform/image-decoders/webp/WEBPImageDecoder.h

Issue 400543004: Rename WebCore namespace to blink in Platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google 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 * 7 *
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 16 matching lines...) Expand all
27 */ 27 */
28 28
29 #ifndef WEBPImageDecoder_h 29 #ifndef WEBPImageDecoder_h
30 #define WEBPImageDecoder_h 30 #define WEBPImageDecoder_h
31 31
32 #include "platform/image-decoders/ImageDecoder.h" 32 #include "platform/image-decoders/ImageDecoder.h"
33 33
34 #include "webp/decode.h" 34 #include "webp/decode.h"
35 #include "webp/demux.h" 35 #include "webp/demux.h"
36 36
37 namespace WebCore { 37 namespace blink {
38 38
39 class PLATFORM_EXPORT WEBPImageDecoder : public ImageDecoder { 39 class PLATFORM_EXPORT WEBPImageDecoder : public ImageDecoder {
40 public: 40 public:
41 WEBPImageDecoder(ImageSource::AlphaOption, ImageSource::GammaAndColorProfile Option, size_t maxDecodedBytes); 41 WEBPImageDecoder(ImageSource::AlphaOption, ImageSource::GammaAndColorProfile Option, size_t maxDecodedBytes);
42 virtual ~WEBPImageDecoder(); 42 virtual ~WEBPImageDecoder();
43 43
44 virtual String filenameExtension() const OVERRIDE { return "webp"; } 44 virtual String filenameExtension() const OVERRIDE { return "webp"; }
45 virtual bool isSizeAvailable() OVERRIDE; 45 virtual bool isSizeAvailable() OVERRIDE;
46 virtual bool hasColorProfile() const OVERRIDE { return m_hasColorProfile; } 46 virtual bool hasColorProfile() const OVERRIDE { return m_hasColorProfile; }
47 virtual size_t frameCount() OVERRIDE; 47 virtual size_t frameCount() OVERRIDE;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 int m_repetitionCount; 82 int m_repetitionCount;
83 int m_decodedHeight; 83 int m_decodedHeight;
84 84
85 typedef void (*AlphaBlendFunction)(ImageFrame&, ImageFrame&, int, int, int); 85 typedef void (*AlphaBlendFunction)(ImageFrame&, ImageFrame&, int, int, int);
86 AlphaBlendFunction m_blendFunction; 86 AlphaBlendFunction m_blendFunction;
87 87
88 void clear(); 88 void clear();
89 void clearDecoder(); 89 void clearDecoder();
90 }; 90 };
91 91
92 } // namespace WebCore 92 } // namespace blink
93 93
94 #endif 94 #endif
OLDNEW
« no previous file with comments | « Source/platform/image-decoders/png/PNGImageDecoder.cpp ('k') | Source/platform/image-decoders/webp/WEBPImageDecoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698