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

Unified Diff: cc/resources/resource_format.h

Issue 21159007: cc: Adding support for RGBA_4444 tile textures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review feedback 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 side-by-side diff with in-line comments
Download patch
Index: cc/resources/resource_format.h
diff --git a/cc/output/software_frame_data.cc b/cc/resources/resource_format.h
similarity index 50%
copy from cc/output/software_frame_data.cc
copy to cc/resources/resource_format.h
index 0b430325092f02a162776910aced9beca59c1a38..89d0110beb24ba7aeb3d942bf8842462bae9a77e 100644
--- a/cc/output/software_frame_data.cc
+++ b/cc/resources/resource_format.h
@@ -2,14 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "cc/output/software_frame_data.h"
+#ifndef CC_RESOURCES_RESOURCE_FORMAT_H_
+#define CC_RESOURCES_RESOURCE_FORMAT_H_
namespace cc {
-SoftwareFrameData::SoftwareFrameData()
- : id(0),
- handle(base::SharedMemory::NULLHandle()) {}
-
-SoftwareFrameData::~SoftwareFrameData() {}
+enum ResourceFormat {
+ RGBA_8888,
+ RGBA_4444,
+ BGRA_8888,
+ LUMINANCE_8,
piman 2013/09/14 00:14:17 nit: can you add RESOURCE_FORMAT_MAX = LUMINANCE_8
kaanb 2013/09/14 00:36:25 Done.
+};
} // namespace cc
+
+#endif // CC_RESOURCES_RESOURCE_FORMAT_H_

Powered by Google App Engine
This is Rietveld 408576698