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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 2466003: Expose UpdateOffscreenFrameBufferSize from GLES2Decoder to allow Mac... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <list> 10 #include <list>
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 // Overridden from AsyncAPIInterface. 525 // Overridden from AsyncAPIInterface.
526 virtual const char* GetCommandName(unsigned int command_id) const; 526 virtual const char* GetCommandName(unsigned int command_id) const;
527 527
528 // Overridden from GLES2Decoder. 528 // Overridden from GLES2Decoder.
529 virtual bool Initialize(gfx::GLContext* context, 529 virtual bool Initialize(gfx::GLContext* context,
530 const gfx::Size& size, 530 const gfx::Size& size,
531 GLES2Decoder* parent, 531 GLES2Decoder* parent,
532 uint32 parent_client_texture_id); 532 uint32 parent_client_texture_id);
533 virtual void Destroy(); 533 virtual void Destroy();
534 virtual void ResizeOffscreenFrameBuffer(const gfx::Size& size); 534 virtual void ResizeOffscreenFrameBuffer(const gfx::Size& size);
535 virtual bool UpdateOffscreenFrameBufferSize();
535 virtual bool MakeCurrent(); 536 virtual bool MakeCurrent();
536 virtual GLES2Util* GetGLES2Util() { return &util_; } 537 virtual GLES2Util* GetGLES2Util() { return &util_; }
537 virtual gfx::GLContext* GetGLContext() { return context_; } 538 virtual gfx::GLContext* GetGLContext() { return context_; }
538 539
539 virtual void SetSwapBuffersCallback(Callback0::Type* callback); 540 virtual void SetSwapBuffersCallback(Callback0::Type* callback);
540 541
541 private: 542 private:
542 friend class ScopedGLErrorSuppressor; 543 friend class ScopedGLErrorSuppressor;
543 friend class ScopedTexture2DBinder; 544 friend class ScopedTexture2DBinder;
544 friend class ScopedFrameBufferBinder; 545 friend class ScopedFrameBufferBinder;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 } 591 }
591 592
592 ShaderManager* shader_manager() { 593 ShaderManager* shader_manager() {
593 return group_->shader_manager(); 594 return group_->shader_manager();
594 } 595 }
595 596
596 TextureManager* texture_manager() { 597 TextureManager* texture_manager() {
597 return group_->texture_manager(); 598 return group_->texture_manager();
598 } 599 }
599 600
600 bool UpdateOffscreenFrameBufferSize();
601
602 // Creates a TextureInfo for the given texture. 601 // Creates a TextureInfo for the given texture.
603 TextureManager::TextureInfo* CreateTextureInfo( 602 TextureManager::TextureInfo* CreateTextureInfo(
604 GLuint client_id, GLuint service_id) { 603 GLuint client_id, GLuint service_id) {
605 return texture_manager()->CreateTextureInfo(client_id, service_id); 604 return texture_manager()->CreateTextureInfo(client_id, service_id);
606 } 605 }
607 606
608 // Gets the texture info for the given texture. Returns NULL if none exists. 607 // Gets the texture info for the given texture. Returns NULL if none exists.
609 TextureManager::TextureInfo* GetTextureInfo(GLuint client_id) { 608 TextureManager::TextureInfo* GetTextureInfo(GLuint client_id) {
610 TextureManager::TextureInfo* info = 609 TextureManager::TextureInfo* info =
611 texture_manager()->GetTextureInfo(client_id); 610 texture_manager()->GetTextureInfo(client_id);
(...skipping 4098 matching lines...) Expand 10 before | Expand all | Expand 10 after
4710 return error::kNoError; 4709 return error::kNoError;
4711 } 4710 }
4712 4711
4713 // Include the auto-generated part of this file. We split this because it means 4712 // Include the auto-generated part of this file. We split this because it means
4714 // we can easily edit the non-auto generated parts right here in this file 4713 // we can easily edit the non-auto generated parts right here in this file
4715 // instead of having to edit some template or the code generator. 4714 // instead of having to edit some template or the code generator.
4716 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 4715 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
4717 4716
4718 } // namespace gles2 4717 } // namespace gles2
4719 } // namespace gpu 4718 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698