1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "cc/resources/ui_resource_request.h"
9 UIResourceRequest::UIResourceRequest(UIResourceRequestType type
,
11 : type_(type
), id_(id
) {}
13 UIResourceRequest::UIResourceRequest(UIResourceRequestType type
,
15 const UIResourceBitmap
& bitmap
)
16 : type_(type
), id_(id
), bitmap_(new UIResourceBitmap(bitmap
)) {}
18 UIResourceRequest::UIResourceRequest(const UIResourceRequest
& request
) {
22 UIResourceRequest
& UIResourceRequest::operator=(
23 const UIResourceRequest
& request
) {
24 type_
= request
.type_
;
26 if (request
.bitmap_
) {
27 bitmap_
= make_scoped_ptr(new UIResourceBitmap(*request
.bitmap_
.get()));
35 UIResourceRequest::~UIResourceRequest() {}