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

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

Issue 766333003: canvas: fix bugs on HTMLCanvasElement::copiedImage() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rephrase this test so that the expectations don't contain failure Created 6 years 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) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple 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 * 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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 void setupFlags(); 407 void setupFlags();
408 408
409 #if ENABLE(OILPAN) 409 #if ENABLE(OILPAN)
410 PassRefPtr<WebGLSharedWebGraphicsContext3D> sharedWebGraphicsContext3D() con st; 410 PassRefPtr<WebGLSharedWebGraphicsContext3D> sharedWebGraphicsContext3D() con st;
411 #endif 411 #endif
412 412
413 // CanvasRenderingContext implementation. 413 // CanvasRenderingContext implementation.
414 virtual bool is3d() const override { return true; } 414 virtual bool is3d() const override { return true; }
415 virtual bool isAccelerated() const override { return true; } 415 virtual bool isAccelerated() const override { return true; }
416 virtual void setIsHidden(bool) override; 416 virtual void setIsHidden(bool) override;
417 virtual void paintRenderingResultsToCanvas(SourceDrawingBuffer) override; 417 bool paintRenderingResultsToCanvas(SourceDrawingBuffer) override;
418 virtual blink::WebLayer* platformLayer() const override; 418 virtual blink::WebLayer* platformLayer() const override;
419 419
420 void addSharedObject(WebGLSharedObject*); 420 void addSharedObject(WebGLSharedObject*);
421 void addContextObject(WebGLContextObject*); 421 void addContextObject(WebGLContextObject*);
422 void detachAndRemoveAllObjects(); 422 void detachAndRemoveAllObjects();
423 423
424 void destroyContext(); 424 void destroyContext();
425 void markContextChanged(ContentChangeType); 425 void markContextChanged(ContentChangeType);
426 426
427 // Query if the GL implementation is NPOT strict. 427 // Query if the GL implementation is NPOT strict.
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 static IntSize oldestContextSize(); 980 static IntSize oldestContextSize();
981 }; 981 };
982 982
983 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d()); 983 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d());
984 984
985 } // namespace blink 985 } // namespace blink
986 986
987 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState); 987 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState);
988 988
989 #endif // WebGLRenderingContextBase_h 989 #endif // WebGLRenderingContextBase_h
OLDNEW
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext.h ('k') | Source/core/html/canvas/WebGLRenderingContextBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698