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

Side by Side Diff: webkit/renderer/compositor_bindings/web_content_layer_impl.cc

Issue 316053002: Delete per-layer gpu rasterization hint. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/renderer/compositor_bindings/web_content_layer_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/renderer/compositor_bindings/web_content_layer_impl.h" 5 #include "webkit/renderer/compositor_bindings/web_content_layer_impl.h"
6 6
7 #include "cc/layers/content_layer.h" 7 #include "cc/layers/content_layer.h"
8 #include "cc/layers/picture_layer.h" 8 #include "cc/layers/picture_layer.h"
9 #include "third_party/WebKit/public/platform/WebContentLayerClient.h" 9 #include "third_party/WebKit/public/platform/WebContentLayerClient.h"
10 #include "third_party/WebKit/public/platform/WebFloatPoint.h" 10 #include "third_party/WebKit/public/platform/WebFloatPoint.h"
(...skipping 28 matching lines...) Expand all
39 blink::WebLayer* WebContentLayerImpl::layer() { return layer_.get(); } 39 blink::WebLayer* WebContentLayerImpl::layer() { return layer_.get(); }
40 40
41 void WebContentLayerImpl::setDoubleSided(bool double_sided) { 41 void WebContentLayerImpl::setDoubleSided(bool double_sided) {
42 layer_->layer()->SetDoubleSided(double_sided); 42 layer_->layer()->SetDoubleSided(double_sided);
43 } 43 }
44 44
45 void WebContentLayerImpl::setDrawCheckerboardForMissingTiles(bool enable) { 45 void WebContentLayerImpl::setDrawCheckerboardForMissingTiles(bool enable) {
46 layer_->layer()->SetDrawCheckerboardForMissingTiles(enable); 46 layer_->layer()->SetDrawCheckerboardForMissingTiles(enable);
47 } 47 }
48 48
49 void WebContentLayerImpl::setHasGpuRasterizationHint(bool has_hint) {
50 // TODO(ajuma): Convert per-layer GPU rasterization hints to per-layer
51 // prepaint-disabling hints (crbug.com/365885).
52 }
53
54 void WebContentLayerImpl::PaintContents( 49 void WebContentLayerImpl::PaintContents(
55 SkCanvas* canvas, 50 SkCanvas* canvas,
56 const gfx::Rect& clip, 51 const gfx::Rect& clip,
57 gfx::RectF* opaque, 52 gfx::RectF* opaque,
58 ContentLayerClient::GraphicsContextStatus graphics_context_status) { 53 ContentLayerClient::GraphicsContextStatus graphics_context_status) {
59 if (!client_) 54 if (!client_)
60 return; 55 return;
61 56
62 blink::WebFloatRect web_opaque; 57 blink::WebFloatRect web_opaque;
63 // For picture layers, always record with LCD text. PictureLayerImpl 58 // For picture layers, always record with LCD text. PictureLayerImpl
(...skipping 21 matching lines...) Expand all
85 return; 80 return;
86 81
87 can_use_lcd_text_ = layer_->layer()->can_use_lcd_text(); 82 can_use_lcd_text_ = layer_->layer()->can_use_lcd_text();
88 ignore_lcd_text_change_ = true; 83 ignore_lcd_text_change_ = true;
89 layer_->invalidate(); 84 layer_->invalidate();
90 } 85 }
91 86
92 bool WebContentLayerImpl::FillsBoundsCompletely() const { return false; } 87 bool WebContentLayerImpl::FillsBoundsCompletely() const { return false; }
93 88
94 } // namespace webkit 89 } // namespace webkit
OLDNEW
« 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