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

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: Cleaning up the allocated SkMipMap object. Created 4 years, 11 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* texelsOrOffset, size_t rowBytes, int width, int he ight);
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* fTexelsOrOffset;
24 size_t fRowBytes;
25 int fWidth;
26 int fHeight;
27 };
28
29 // Get the number of mipmap levels from the base image's dimensions.
30 int SkMipMapLevelCount(int baseWidth, int baseHeight);
31
32 #endif
OLDNEW
« no previous file with comments | « gyp/core.gypi ('k') | include/gpu/GrSurface.h » ('j') | include/gpu/GrTextureProvider.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698