blob: 4385f162b19e8545871092b6825dbc78bb1df0ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "config.h"
// We need access to the private member of ImageSource. Hack it locally
#include <wtf/Noncopyable.h>
#include <wtf/Vector.h>
#define private protected
#include "ImageSource.h"
#undef private
namespace WebCore {
class ImageSourceSkia : public ImageSource {
public:
// This is a special-purpose routine for the favicon decoder, which is used
// to specify a particular icon size for the ICOImageDecoder to prefer
// decoding. Note that not all favicons are ICOs, so this won't
// necessarily do anything differently than ImageSource::setData().
//
// Passing an empty IntSize for |preferredIconSize| here is exactly
// equivalent to just calling ImageSource::setData(). See also comments in
// ICOImageDecoder.cpp.
void setData(SharedBuffer* data,
bool allDataReceived,
const IntSize& preferredIconSize);
};
}
|