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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h

Issue 2637553002: Stop unnecessary flushing in Canvas2DLayerBridge (Closed)
Patch Set: Created 3 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 bool m_destructionInProgress; 259 bool m_destructionInProgress;
260 SkFilterQuality m_filterQuality; 260 SkFilterQuality m_filterQuality;
261 bool m_isHidden; 261 bool m_isHidden;
262 bool m_isDeferralEnabled; 262 bool m_isDeferralEnabled;
263 bool m_isRegisteredTaskObserver; 263 bool m_isRegisteredTaskObserver;
264 bool m_renderingTaskCompletedForCurrentFrame; 264 bool m_renderingTaskCompletedForCurrentFrame;
265 bool m_softwareRenderingWhileHidden; 265 bool m_softwareRenderingWhileHidden;
266 bool m_surfaceCreationFailedAtLeastOnce = false; 266 bool m_surfaceCreationFailedAtLeastOnce = false;
267 bool m_hibernationScheduled = false; 267 bool m_hibernationScheduled = false;
268 bool m_dontUseIdleSchedulingForTesting = false; 268 bool m_dontUseIdleSchedulingForTesting = false;
269 bool m_didDrawSinceLastFlush = false;
270 bool m_didDrawSinceLastGpuFlush = false;
269 271
270 friend class Canvas2DLayerBridgeTest; 272 friend class Canvas2DLayerBridgeTest;
271 friend class CanvasRenderingContext2DTest; 273 friend class CanvasRenderingContext2DTest;
272 friend class HTMLCanvasPainterTestForSPv2; 274 friend class HTMLCanvasPainterTestForSPv2;
273 275
274 uint32_t m_lastImageId; 276 uint32_t m_lastImageId;
275 277
276 enum { 278 enum {
277 // We should normally not have more that two active mailboxes at a time, 279 // We should normally not have more that two active mailboxes at a time,
278 // but sometimes we may have three due to the async nature of mailbox 280 // but sometimes we may have three due to the async nature of mailbox
(...skipping 14 matching lines...) Expand all
293 // Each element in this vector represents an IOSurface backed texture that 295 // Each element in this vector represents an IOSurface backed texture that
294 // is ready to be reused. 296 // is ready to be reused.
295 // Elements in this vector can safely be purged in low memory conditions. 297 // Elements in this vector can safely be purged in low memory conditions.
296 Vector<RefPtr<ImageInfo>> m_imageInfoCache; 298 Vector<RefPtr<ImageInfo>> m_imageInfoCache;
297 #endif // USE_IOSURFACE_FOR_2D_CANVAS 299 #endif // USE_IOSURFACE_FOR_2D_CANVAS
298 }; 300 };
299 301
300 } // namespace blink 302 } // namespace blink
301 303
302 #endif 304 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698