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

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: nit Created 4 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
« no previous file with comments | « no previous file | cc/resources/ui_resource_bitmap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..23492182b35d359082445f798990b9f607780848 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"
@@ -37,6 +39,10 @@ class CC_EXPORT UIResourceBitmap {
bool GetOpaque() const { return opaque_; }
void SetOpaque(bool opaque) { opaque_ = opaque; }
+ // Draw the UIResourceBitmap onto the provided |canvas| using the style
+ // information specified by |paint|.
+ void DrawToCanvas(SkCanvas* canvas, SkPaint* paint);
+
// User must ensure that |skbitmap| is immutable. The SkBitmap Format should
// be 32-bit RGBA or 8-bit ALPHA.
explicit UIResourceBitmap(const SkBitmap& skbitmap);
« no previous file with comments | « no previous file | cc/resources/ui_resource_bitmap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698