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

Side by Side Diff: Source/core/html/canvas/CanvasRenderingContext2D.h

Issue 385663002: Revert of WebGL: Free temporary GPU resources held by inactive or hidden WebGL. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights reserv ed.
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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 void drawFocusRing(const Path&); 344 void drawFocusRing(const Path&);
345 345
346 void addHitRegionInternal(const HitRegionOptions&, ExceptionState&); 346 void addHitRegionInternal(const HitRegionOptions&, ExceptionState&);
347 bool hasClip() { return state().m_hasClip; } 347 bool hasClip() { return state().m_hasClip; }
348 348
349 void validateStateStack(); 349 void validateStateStack();
350 350
351 virtual bool is2d() const OVERRIDE { return true; } 351 virtual bool is2d() const OVERRIDE { return true; }
352 virtual bool isAccelerated() const OVERRIDE; 352 virtual bool isAccelerated() const OVERRIDE;
353 virtual bool hasAlpha() const OVERRIDE { return m_hasAlpha; } 353 virtual bool hasAlpha() const OVERRIDE { return m_hasAlpha; }
354 virtual void setIsHidden(bool) OVERRIDE;
355 354
356 virtual bool isTransformInvertible() const OVERRIDE { return state().m_inver tibleCTM; } 355 virtual bool isTransformInvertible() const OVERRIDE { return state().m_inver tibleCTM; }
357 356
358 virtual blink::WebLayer* platformLayer() const OVERRIDE; 357 virtual blink::WebLayer* platformLayer() const OVERRIDE;
359 358
360 WillBeHeapVector<OwnPtrWillBeMember<State> > m_stateStack; 359 WillBeHeapVector<OwnPtrWillBeMember<State> > m_stateStack;
361 OwnPtrWillBeMember<HitRegionManager> m_hitRegionManager; 360 OwnPtrWillBeMember<HitRegionManager> m_hitRegionManager;
362 bool m_usesCSSCompatibilityParseMode; 361 bool m_usesCSSCompatibilityParseMode;
363 bool m_hasAlpha; 362 bool m_hasAlpha;
364 bool m_isContextLost; 363 bool m_isContextLost;
365 bool m_contextRestorable; 364 bool m_contextRestorable;
366 Canvas2DContextStorage m_storageMode; 365 Canvas2DContextStorage m_storageMode;
367 MutableStylePropertyMap m_fetchedFonts; 366 MutableStylePropertyMap m_fetchedFonts;
368 unsigned m_tryRestoreContextAttemptCount; 367 unsigned m_tryRestoreContextAttemptCount;
369 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; 368 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer;
370 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; 369 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer;
371 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; 370 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer;
372 }; 371 };
373 372
374 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d()); 373 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d());
375 374
376 } // namespace WebCore 375 } // namespace WebCore
377 376
378 #endif 377 #endif
OLDNEW
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext.h ('k') | Source/core/html/canvas/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698