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. 4 5 #include "cc/resources/ui_resource_bitmap.h" 6 7 #include "base/memory/scoped_ptr.h" 8 9 namespace cc { 10 11 scoped_refptr<UIResourceBitmap> 12 UIResourceBitmap::Create(uint8_t* pixels, 13 UIResourceFormat format, 14 gfx::Size size) { 15 scoped_refptr<UIResourceBitmap> ret = new UIResourceBitmap(); 16 ret->pixels_ = scoped_ptr<uint8_t[]>(pixels); 17 ret->format_ = format; 18 ret->size_ = size; 19 20 return ret; 21 } 22 23 UIResourceBitmap::UIResourceBitmap() {} 24 UIResourceBitmap::~UIResourceBitmap() {} 25 26 } // namespace cc 27