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

Side by Side Diff: content/child/browser_font_resource_trusted.h

Issue 975533004: BrowserFontResource should not push opacity info to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: v2 - temp canvas instead of draw filter Created 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/child/browser_font_resource_trusted.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_CHILD_BROWSER_FONT_RESOURCE_TRUSTED_H_ 5 #ifndef CONTENT_CHILD_BROWSER_FONT_RESOURCE_TRUSTED_H_
6 #define CONTENT_CHILD_BROWSER_FONT_RESOURCE_TRUSTED_H_ 6 #define CONTENT_CHILD_BROWSER_FONT_RESOURCE_TRUSTED_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 uint32_t char_offset) override; 58 uint32_t char_offset) override;
59 59
60 private: 60 private:
61 ~BrowserFontResource_Trusted() override; 61 ~BrowserFontResource_Trusted() override;
62 62
63 // Internal version of DrawTextAt that takes a mapped PlatformCanvas. 63 // Internal version of DrawTextAt that takes a mapped PlatformCanvas.
64 void DrawTextToCanvas(SkCanvas* destination, 64 void DrawTextToCanvas(SkCanvas* destination,
65 const PP_BrowserFont_Trusted_TextRun& text, 65 const PP_BrowserFont_Trusted_TextRun& text,
66 const PP_Point* position, 66 const PP_Point* position,
67 uint32_t color, 67 uint32_t color,
68 const PP_Rect* clip, 68 const PP_Rect* clip);
69 PP_Bool image_data_is_opaque);
70 69
71 private: 70 private:
72 scoped_ptr<blink::WebFont> font_; 71 scoped_ptr<blink::WebFont> font_;
73 72
74 DISALLOW_COPY_AND_ASSIGN(BrowserFontResource_Trusted); 73 DISALLOW_COPY_AND_ASSIGN(BrowserFontResource_Trusted);
75 }; 74 };
76 75
77 } // namespace content 76 } // namespace content
78 77
79 #endif // CONTENT_CHILD_BROWSER_FONT_RESOURCE_TRUSTED_H_ 78 #endif // CONTENT_CHILD_BROWSER_FONT_RESOURCE_TRUSTED_H_
OLDNEW
« no previous file with comments | « no previous file | content/child/browser_font_resource_trusted.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698