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

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

Issue 1690763003: Never call GraphicsLayer::paint when fetching painted output from cc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.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 22 matching lines...) Expand all
33 } 33 }
34 34
35 namespace blink { 35 namespace blink {
36 36
37 struct WebRect; 37 struct WebRect;
38 class WebDisplayItemList; 38 class WebDisplayItemList;
39 39
40 class BLINK_PLATFORM_EXPORT WebContentLayerClient { 40 class BLINK_PLATFORM_EXPORT WebContentLayerClient {
41 public: 41 public:
42 enum PaintingControlSetting { 42 enum PaintingControlSetting {
43 // Returns the last PaintArtifact produced.
43 PaintDefaultBehavior, 44 PaintDefaultBehavior,
45 // Paints the content to simulate the behavior of FrameView::synchronize dPaint.
46 PaintDefaultBehaviorForTest,
44 DisplayListConstructionDisabled, 47 DisplayListConstructionDisabled,
45 DisplayListCachingDisabled, 48 DisplayListCachingDisabled,
46 DisplayListPaintingDisabled, 49 DisplayListPaintingDisabled,
47 SubsequenceCachingDisabled 50 SubsequenceCachingDisabled
48 }; 51 };
49 52
50 // The paintable region is the rectangular region, within the bounds of the layer 53 // The paintable region is the rectangular region, within the bounds of the layer
51 // this client paints, that the client is capable of painting via paintConte nts(). 54 // this client paints, that the client is capable of painting via paintConte nts().
52 // Calling paintContents will return a WebDisplayitemList that is guaranteed valid 55 // Calling paintContents will return a WebDisplayitemList that is guaranteed valid
53 // only within this region. 56 // only within this region.
(...skipping 15 matching lines...) Expand all
69 // result includes data cached internally during painting. 72 // result includes data cached internally during painting.
70 virtual size_t approximateUnsharedMemoryUsage() const { return 0; } 73 virtual size_t approximateUnsharedMemoryUsage() const { return 0; }
71 74
72 protected: 75 protected:
73 virtual ~WebContentLayerClient() { } 76 virtual ~WebContentLayerClient() { }
74 }; 77 };
75 78
76 } // namespace blink 79 } // namespace blink
77 80
78 #endif // WebContentLayerClient_h 81 #endif // WebContentLayerClient_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698