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

Unified Diff: cc/resources/layer_updater.h

Issue 567743003: Fix bad scaling in TiledLayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge to trunk Created 6 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 | « cc/resources/content_layer_updater.cc ('k') | cc/resources/skpicture_content_layer_updater.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/layer_updater.h
diff --git a/cc/resources/layer_updater.h b/cc/resources/layer_updater.h
index 258d2be9a173583bcd5d734286f68d63af8bb02e..4614c5a39895005d8c71c8b30cc2691017160f21 100644
--- a/cc/resources/layer_updater.h
+++ b/cc/resources/layer_updater.h
@@ -8,6 +8,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "cc/base/cc_export.h"
+#include "third_party/skia/include/core/SkColor.h"
#include "ui/gfx/rect.h"
#include "ui/gfx/vector2d.h"
@@ -46,7 +47,8 @@ class CC_EXPORT LayerUpdater : public base::RefCounted<LayerUpdater> {
virtual scoped_ptr<Resource> CreateResource(
PrioritizedResourceManager* manager) = 0;
- virtual void PrepareToUpdate(const gfx::Rect& content_rect,
+ virtual void PrepareToUpdate(const gfx::Size& content_size,
+ const gfx::Rect& paint_rect,
const gfx::Size& tile_size,
float contents_width_scale,
float contents_height_scale) {}
@@ -58,6 +60,7 @@ class CC_EXPORT LayerUpdater : public base::RefCounted<LayerUpdater> {
// Set true by the layer when it is known that the entire output bounds will
// be rasterized.
virtual void SetFillsBoundsCompletely(bool fills_bounds) {}
+ virtual void SetBackgroundColor(SkColor background_color) {}
protected:
virtual ~LayerUpdater() {}
« no previous file with comments | « cc/resources/content_layer_updater.cc ('k') | cc/resources/skpicture_content_layer_updater.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698