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

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

Issue 253013003: Enable disabling WebCore::GraphicsContext in telemetry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 7 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
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 #ifndef WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_CONTENT_LAYER_IMPL_H_ 5 #ifndef WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_CONTENT_LAYER_IMPL_H_
6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_CONTENT_LAYER_IMPL_H_ 6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_CONTENT_LAYER_IMPL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/layers/content_layer_client.h" 9 #include "cc/layers/content_layer_client.h"
10 #include "third_party/WebKit/public/platform/WebContentLayer.h" 10 #include "third_party/WebKit/public/platform/WebContentLayer.h"
(...skipping 18 matching lines...) Expand all
29 // WebContentLayer implementation. 29 // WebContentLayer implementation.
30 virtual blink::WebLayer* layer(); 30 virtual blink::WebLayer* layer();
31 virtual void setDoubleSided(bool double_sided); 31 virtual void setDoubleSided(bool double_sided);
32 virtual void setDrawCheckerboardForMissingTiles(bool checkerboard); 32 virtual void setDrawCheckerboardForMissingTiles(bool checkerboard);
33 virtual void setHasGpuRasterizationHint(bool has_hint); 33 virtual void setHasGpuRasterizationHint(bool has_hint);
34 34
35 protected: 35 protected:
36 virtual ~WebContentLayerImpl(); 36 virtual ~WebContentLayerImpl();
37 37
38 // ContentLayerClient implementation. 38 // ContentLayerClient implementation.
39 virtual void PaintContents(SkCanvas* canvas, 39 virtual void PaintContents(
40 const gfx::Rect& clip, 40 SkCanvas* canvas,
41 gfx::RectF* opaque) OVERRIDE; 41 const gfx::Rect& clip,
42 gfx::RectF* opaque,
43 ContentLayerClient::GraphicsContextStatus
44 graphics_context_status = ContentLayerClient::GraphicsContextEnabled)
Sami 2014/05/01 16:32:53 Ditto about default parameters.
Stephen Chennney 2014/05/01 19:12:26 Done.
45 OVERRIDE;
42 virtual void DidChangeLayerCanUseLCDText() OVERRIDE; 46 virtual void DidChangeLayerCanUseLCDText() OVERRIDE;
43 virtual bool FillsBoundsCompletely() const OVERRIDE; 47 virtual bool FillsBoundsCompletely() const OVERRIDE;
44 48
45 scoped_ptr<WebLayerImpl> layer_; 49 scoped_ptr<WebLayerImpl> layer_;
46 blink::WebContentLayerClient* client_; 50 blink::WebContentLayerClient* client_;
47 bool draws_content_; 51 bool draws_content_;
48 52
49 private: 53 private:
50 bool can_use_lcd_text_; 54 bool can_use_lcd_text_;
51 bool ignore_lcd_text_change_; 55 bool ignore_lcd_text_change_;
52 56
53 DISALLOW_COPY_AND_ASSIGN(WebContentLayerImpl); 57 DISALLOW_COPY_AND_ASSIGN(WebContentLayerImpl);
54 }; 58 };
55 59
56 } // namespace webkit 60 } // namespace webkit
57 61
58 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_CONTENT_LAYER_IMPL_H_ 62 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_CONTENT_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698