This source file includes following definitions.
- id_
- bitmap_
#include "cc/resources/ui_resource_request.h"
namespace cc {
UIResourceRequest::UIResourceRequest(UIResourceRequestType type,
UIResourceId id)
: type_(type), id_(id) {}
UIResourceRequest::UIResourceRequest(UIResourceRequestType type,
UIResourceId id,
const UIResourceBitmap& bitmap)
: type_(type), id_(id), bitmap_(new UIResourceBitmap(bitmap)) {}
UIResourceRequest::UIResourceRequest(const UIResourceRequest& request) {
(*this) = request;
}
UIResourceRequest& UIResourceRequest::operator=(
const UIResourceRequest& request) {
type_ = request.type_;
id_ = request.id_;
if (request.bitmap_) {
bitmap_ = make_scoped_ptr(new UIResourceBitmap(*request.bitmap_.get()));
} else {
bitmap_.reset();
}
return *this;
}
UIResourceRequest::~UIResourceRequest() {}
}