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

Side by Side Diff: cc/resources/ui_resource_bitmap.cc

Issue 22529002: [cc] Allow resources and ui resources to specify wrap mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix botched resolve Created 7 years, 3 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
« no previous file with comments | « cc/resources/ui_resource_bitmap.h ('k') | cc/resources/video_resource_updater.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/resources/ui_resource_bitmap.h" 5 #include "cc/resources/ui_resource_bitmap.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 8
9 namespace cc { 9 namespace cc {
10 10
11 scoped_refptr<UIResourceBitmap> 11 scoped_refptr<UIResourceBitmap>
12 UIResourceBitmap::Create(uint8_t* pixels, 12 UIResourceBitmap::Create(uint8_t* pixels,
13 UIResourceFormat format, 13 UIResourceFormat format,
14 UIResourceWrapMode wrap_mode,
14 gfx::Size size) { 15 gfx::Size size) {
15 scoped_refptr<UIResourceBitmap> ret = new UIResourceBitmap(); 16 scoped_refptr<UIResourceBitmap> ret = new UIResourceBitmap();
16 ret->pixels_ = scoped_ptr<uint8_t[]>(pixels); 17 ret->pixels_ = scoped_ptr<uint8_t[]>(pixels);
17 ret->format_ = format; 18 ret->format_ = format;
19 ret->wrap_mode_ = wrap_mode;
18 ret->size_ = size; 20 ret->size_ = size;
19 21
20 return ret; 22 return ret;
21 } 23 }
22 24
23 UIResourceBitmap::UIResourceBitmap() {} 25 UIResourceBitmap::UIResourceBitmap() {}
24 UIResourceBitmap::~UIResourceBitmap() {} 26 UIResourceBitmap::~UIResourceBitmap() {}
25 27
26 } // namespace cc 28 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/ui_resource_bitmap.h ('k') | cc/resources/video_resource_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698