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

Side by Side Diff: include/core/SkMipMapLevel.h

Issue 1249543003: Creating functions for uploading a mipmapped texture. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Fixing merge mistakes Created 5 years, 2 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
OLDNEW
(Empty)
1 /*
2 * Copyright 2015 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef SkMipMapLevel_DEFINED
9 #define SkMipMapLevel_DEFINED
10
11 #include "SkTypes.h"
12
13 struct SkMipMapLevel {
14 SkMipMapLevel(const void* texels, size_t rowBytes, uint32_t width, uint32_t height);
15
16 SkMipMapLevel() = delete;
17 SkMipMapLevel(const SkMipMapLevel& rhs) = default;
18 SkMipMapLevel(SkMipMapLevel&& rhs); // not "= default" because of VS2013
19
20 SkMipMapLevel& operator =(const SkMipMapLevel& rhs) = default;
21 SkMipMapLevel& operator =(SkMipMapLevel&& rhs); // not "= default" because o f VS2013
22
23 const void* fTexels;
24 size_t fRowBytes;
25 uint32_t fWidth;
26 uint32_t fHeight;
27 };
28
29 #endif
OLDNEW
« no previous file with comments | « gyp/core.gypi ('k') | include/gpu/GrContext.h » ('j') | include/gpu/GrContext.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698