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

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

Issue 93663004: [#2] Pass gfx structs by const ref (gfx::Rect, gfx::RectF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT, fix builds on non-linux platforms! Created 6 years, 11 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
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 33
34 protected: 34 protected:
35 virtual ~WebContentLayerImpl(); 35 virtual ~WebContentLayerImpl();
36 36
37 // ContentLayerClient implementation. 37 // ContentLayerClient implementation.
38 virtual void PaintContents(SkCanvas* canvas, 38 virtual void PaintContents(SkCanvas* canvas,
39 gfx::Rect clip, 39 const gfx::Rect& clip,
40 gfx::RectF* opaque) OVERRIDE; 40 gfx::RectF* opaque) OVERRIDE;
41 virtual void DidChangeLayerCanUseLCDText() OVERRIDE; 41 virtual void DidChangeLayerCanUseLCDText() OVERRIDE;
42 42
43 scoped_ptr<WebLayerImpl> layer_; 43 scoped_ptr<WebLayerImpl> layer_;
44 blink::WebContentLayerClient* client_; 44 blink::WebContentLayerClient* client_;
45 bool draws_content_; 45 bool draws_content_;
46 46
47 private: 47 private:
48 bool can_use_lcd_text_; 48 bool can_use_lcd_text_;
49 bool ignore_lcd_text_change_; 49 bool ignore_lcd_text_change_;
50 50
51 DISALLOW_COPY_AND_ASSIGN(WebContentLayerImpl); 51 DISALLOW_COPY_AND_ASSIGN(WebContentLayerImpl);
52 }; 52 };
53 53
54 } // namespace webkit 54 } // namespace webkit
55 55
56 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_CONTENT_LAYER_IMPL_H_ 56 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_CONTENT_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/renderer/compositor_bindings/scrollbar_impl.cc ('k') | webkit/renderer/compositor_bindings/web_content_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698