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

Side by Side Diff: public/platform/WebContentLayerClient.h

Issue 554183004: Add an alternate paintContents method to WebContentLayerClient. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: opaquerecttracking: . Created 6 years, 3 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 | « Source/web/WebPopupMenuImpl.cpp ('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 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 30 matching lines...) Expand all
41 // Paints the content area for the layer, typically dirty rects submitted 41 // Paints the content area for the layer, typically dirty rects submitted
42 // through WebContentLayer::setNeedsDisplay, submitting drawing commands 42 // through WebContentLayer::setNeedsDisplay, submitting drawing commands
43 // through the WebCanvas. 43 // through the WebCanvas.
44 // The canvas is already clipped to the |clip| rect. 44 // The canvas is already clipped to the |clip| rect.
45 // Optionally, the implementation may set |opaque| to a rect covering pixels that 45 // Optionally, the implementation may set |opaque| to a rect covering pixels that
46 // the implementation knows are opaque. This information can be used for var ious 46 // the implementation knows are opaque. This information can be used for var ious
47 // optimizations. 47 // optimizations.
48 // The |disableContext| enum controls most processing in 48 // The |disableContext| enum controls most processing in
49 // GraphicsContext to isolate the painting code in performance tests. 49 // GraphicsContext to isolate the painting code in performance tests.
50 virtual void paintContents(WebCanvas*, const WebRect& clip, bool canPaintLCD Text, WebFloatRect& opaque, GraphicsContextStatus = GraphicsContextEnabled) = 0; 50 virtual void paintContents(WebCanvas*, const WebRect& clip, bool canPaintLCD Text, WebFloatRect& opaque, GraphicsContextStatus = GraphicsContextEnabled) = 0;
51 // FIXME: Replace the above method with this one.
52 virtual void paintContents(WebCanvas*, const WebRect& clip, bool canPaintLCD Text, GraphicsContextStatus = GraphicsContextEnabled) = 0;
51 53
52 protected: 54 protected:
53 virtual ~WebContentLayerClient() { } 55 virtual ~WebContentLayerClient() { }
54 }; 56 };
55 57
56 } // namespace blink 58 } // namespace blink
57 59
58 #endif // WebContentLayerClient_h 60 #endif // WebContentLayerClient_h
OLDNEW
« no previous file with comments | « Source/web/WebPopupMenuImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698