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

Side by Side Diff: sky/engine/core/html/canvas/WebGLRenderingContextBase.cpp

Issue 709203002: Remove more oilpan. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 485
486 ~ScopedTexture2DRestorer() 486 ~ScopedTexture2DRestorer()
487 { 487 {
488 m_context->restoreCurrentTexture2D(); 488 m_context->restoreCurrentTexture2D();
489 } 489 }
490 490
491 private: 491 private:
492 RawPtr<WebGLRenderingContextBase> m_context; 492 RawPtr<WebGLRenderingContextBase> m_context;
493 }; 493 };
494 494
495 class WebGLRenderingContextLostCallback final : public DummyBase<WebGLRenderingC ontextLostCallback>, public blink::WebGraphicsContext3D::WebGraphicsContextLostC allback { 495 class WebGLRenderingContextLostCallback final : public blink::WebGraphicsContext 3D::WebGraphicsContextLostCallback {
496 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; 496 WTF_MAKE_FAST_ALLOCATED;
497 public: 497 public:
498 static PassOwnPtr<WebGLRenderingContextLostCallback> create(WebGLRenderingCo ntextBase* context) 498 static PassOwnPtr<WebGLRenderingContextLostCallback> create(WebGLRenderingCo ntextBase* context)
499 { 499 {
500 return adoptPtr(new WebGLRenderingContextLostCallback(context)); 500 return adoptPtr(new WebGLRenderingContextLostCallback(context));
501 } 501 }
502 502
503 virtual ~WebGLRenderingContextLostCallback() { } 503 virtual ~WebGLRenderingContextLostCallback() { }
504 504
505 virtual void onContextLost() { m_context->forceLostContext(WebGLRenderingCon textBase::RealLostContext, WebGLRenderingContextBase::Auto); } 505 virtual void onContextLost() { m_context->forceLostContext(WebGLRenderingCon textBase::RealLostContext, WebGLRenderingContextBase::Auto); }
506 506
507 void trace(Visitor* visitor) 507 void trace(Visitor* visitor)
508 { 508 {
509 visitor->trace(m_context); 509 visitor->trace(m_context);
510 } 510 }
511 511
512 private: 512 private:
513 explicit WebGLRenderingContextLostCallback(WebGLRenderingContextBase* contex t) 513 explicit WebGLRenderingContextLostCallback(WebGLRenderingContextBase* contex t)
514 : m_context(context) { } 514 : m_context(context) { }
515 515
516 RawPtr<WebGLRenderingContextBase> m_context; 516 RawPtr<WebGLRenderingContextBase> m_context;
517 }; 517 };
518 518
519 class WebGLRenderingContextErrorMessageCallback final : public DummyBase<WebGLRe nderingContextErrorMessageCallback>, public blink::WebGraphicsContext3D::WebGrap hicsErrorMessageCallback { 519 class WebGLRenderingContextErrorMessageCallback final : public blink::WebGraphic sContext3D::WebGraphicsErrorMessageCallback {
520 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; 520 WTF_MAKE_FAST_ALLOCATED;
521 public: 521 public:
522 static PassOwnPtr<WebGLRenderingContextErrorMessageCallback> create(WebGLRen deringContextBase* context) 522 static PassOwnPtr<WebGLRenderingContextErrorMessageCallback> create(WebGLRen deringContextBase* context)
523 { 523 {
524 return adoptPtr(new WebGLRenderingContextErrorMessageCallback(context)); 524 return adoptPtr(new WebGLRenderingContextErrorMessageCallback(context));
525 } 525 }
526 526
527 virtual ~WebGLRenderingContextErrorMessageCallback() { } 527 virtual ~WebGLRenderingContextErrorMessageCallback() { }
528 528
529 virtual void onErrorMessage(const blink::WebString& message, blink::WGC3Dint ) 529 virtual void onErrorMessage(const blink::WebString& message, blink::WGC3Dint )
530 { 530 {
(...skipping 5148 matching lines...) Expand 10 before | Expand all | Expand 10 after
5679 return m_sharedWebGraphicsContext3D ? m_sharedWebGraphicsContext3D->drawingB uffer() : 0; 5679 return m_sharedWebGraphicsContext3D ? m_sharedWebGraphicsContext3D->drawingB uffer() : 0;
5680 } 5680 }
5681 #else 5681 #else
5682 DrawingBuffer* WebGLRenderingContextBase::drawingBuffer() const 5682 DrawingBuffer* WebGLRenderingContextBase::drawingBuffer() const
5683 { 5683 {
5684 return m_drawingBuffer.get(); 5684 return m_drawingBuffer.get();
5685 } 5685 }
5686 #endif 5686 #endif
5687 5687
5688 } // namespace blink 5688 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/html/canvas/WebGLRenderingContextBase.h ('k') | sky/engine/core/html/canvas/WebGLVertexArrayObjectOES.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698