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

Unified Diff: cc/resources/ui_resource_bitmap.h

Issue 2293573002: Add tinted static UI resource cache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean up Created 4 years, 4 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/ui_resource_bitmap.h
diff --git a/cc/resources/ui_resource_bitmap.h b/cc/resources/ui_resource_bitmap.h
index c56cc86115e9a25f84b72de065d7ebffc8831238..97991b9dcb145bf128104db98cc05f74ad431e51 100644
--- a/cc/resources/ui_resource_bitmap.h
+++ b/cc/resources/ui_resource_bitmap.h
@@ -11,6 +11,8 @@
#include "base/memory/ref_counted.h"
#include "cc/base/cc_export.h"
+#include "third_party/skia/include/core/SkBitmap.h"
+#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkPixelRef.h"
#include "ui/gfx/geometry/size.h"
@@ -36,6 +38,7 @@ class CC_EXPORT UIResourceBitmap {
UIResourceFormat GetFormat() const { return format_; }
bool GetOpaque() const { return opaque_; }
void SetOpaque(bool opaque) { opaque_ = opaque; }
+ void Draw(SkCanvas& canvas, SkPaint& paint);
// User must ensure that |skbitmap| is immutable. The SkBitmap Format should
// be 32-bit RGBA or 8-bit ALPHA.

Powered by Google App Engine
This is Rietveld 408576698