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

Unified Diff: webkit/renderer/compositor_bindings/web_content_layer_impl.cc

Issue 192973002: Add a GPU rasterization hint to cc::PictureLayer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 9 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 | « webkit/renderer/compositor_bindings/web_content_layer_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/renderer/compositor_bindings/web_content_layer_impl.cc
diff --git a/webkit/renderer/compositor_bindings/web_content_layer_impl.cc b/webkit/renderer/compositor_bindings/web_content_layer_impl.cc
index 5a51481790c1e5935e7ab56e719d4bcedfa08ac3..9ae09feb3d57bccccb058a5e43f4d1398954bccd 100644
--- a/webkit/renderer/compositor_bindings/web_content_layer_impl.cc
+++ b/webkit/renderer/compositor_bindings/web_content_layer_impl.cc
@@ -46,6 +46,13 @@ void WebContentLayerImpl::setDrawCheckerboardForMissingTiles(bool enable) {
layer_->layer()->SetDrawCheckerboardForMissingTiles(enable);
}
+void WebContentLayerImpl::setHasGpuRasterizationHint(bool has_hint) {
+ if (WebLayerImpl::UsingPictureLayer()) {
+ static_cast<PictureLayer*>(layer_->layer())
+ ->SetHasGpuRasterizationHint(has_hint);
+ }
+}
+
void WebContentLayerImpl::PaintContents(SkCanvas* canvas,
const gfx::Rect& clip,
gfx::RectF* opaque) {
« no previous file with comments | « webkit/renderer/compositor_bindings/web_content_layer_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698