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

Side by Side Diff: cc/resources/platform_color.h

Issue 13065006: cc: Add DISALLOW_COPY_AND_ASSIGN where appropriate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add operator= for DrawingState back as well Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « cc/resources/picture_layer_tiling_set.h ('k') | cc/resources/priority_calculator.h » ('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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 #ifndef CC_RESOURCES_PLATFORM_COLOR_H_ 5 #ifndef CC_RESOURCES_PLATFORM_COLOR_H_
6 #define CC_RESOURCES_PLATFORM_COLOR_H_ 6 #define CC_RESOURCES_PLATFORM_COLOR_H_
7 7
8 #include "base/basictypes.h"
8 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3 D.h" 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3 D.h"
9 #include "third_party/khronos/GLES2/gl2.h" 10 #include "third_party/khronos/GLES2/gl2.h"
10 #include "third_party/khronos/GLES2/gl2ext.h" 11 #include "third_party/khronos/GLES2/gl2ext.h"
11 #include "third_party/skia/include/core/SkTypes.h" 12 #include "third_party/skia/include/core/SkTypes.h"
12 13
13 namespace cc { 14 namespace cc {
14 15
15 class PlatformColor { 16 class PlatformColor {
16 public: 17 public:
17 enum SourceDataFormat { 18 enum SourceDataFormat {
(...skipping 29 matching lines...) Expand all
47 switch (Format()) { 48 switch (Format()) {
48 case SOURCE_FORMAT_RGBA8: 49 case SOURCE_FORMAT_RGBA8:
49 return texture_format == GL_RGBA; 50 return texture_format == GL_RGBA;
50 case SOURCE_FORMAT_BGRA8: 51 case SOURCE_FORMAT_BGRA8:
51 return texture_format == GL_BGRA_EXT; 52 return texture_format == GL_BGRA_EXT;
52 default: 53 default:
53 NOTREACHED(); 54 NOTREACHED();
54 return false; 55 return false;
55 } 56 }
56 } 57 }
58
59 private:
60 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformColor);
57 }; 61 };
58 62
59 } // namespace cc 63 } // namespace cc
60 64
61 #endif // CC_RESOURCES_PLATFORM_COLOR_H_ 65 #endif // CC_RESOURCES_PLATFORM_COLOR_H_
OLDNEW
« no previous file with comments | « cc/resources/picture_layer_tiling_set.h ('k') | cc/resources/priority_calculator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698