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

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

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
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // This file contains the GLES2Decoder class. 5 // This file contains the GLES2Decoder class.
6 6
7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 const gfx::Size& size, 57 const gfx::Size& size,
58 GLES2Decoder* parent, 58 GLES2Decoder* parent,
59 uint32 parent_client_texture_id) = 0; 59 uint32 parent_client_texture_id) = 0;
60 60
61 // Destroys the graphics context. 61 // Destroys the graphics context.
62 virtual void Destroy() = 0; 62 virtual void Destroy() = 0;
63 63
64 // Resize an offscreen frame buffer. 64 // Resize an offscreen frame buffer.
65 virtual void ResizeOffscreenFrameBuffer(const gfx::Size& size) = 0; 65 virtual void ResizeOffscreenFrameBuffer(const gfx::Size& size) = 0;
66 66
67 // Force the offscreen frame buffer's size to be updated. This
68 // usually occurs lazily, during SwapBuffers, but on some platforms
69 // (Mac OS X in particular) it must be done immediately.
70 virtual bool UpdateOffscreenFrameBufferSize() = 0;
71
67 // Make this decoder's GL context current. 72 // Make this decoder's GL context current.
68 virtual bool MakeCurrent() = 0; 73 virtual bool MakeCurrent() = 0;
69 74
70 // Gets the GLES2 Util which holds info. 75 // Gets the GLES2 Util which holds info.
71 virtual GLES2Util* GetGLES2Util() = 0; 76 virtual GLES2Util* GetGLES2Util() = 0;
72 77
73 // Gets the associated GLContext. 78 // Gets the associated GLContext.
74 virtual gfx::GLContext* GetGLContext() = 0; 79 virtual gfx::GLContext* GetGLContext() = 0;
75 80
76 // Sets a callback which is called when a SwapBuffers command is processed. 81 // Sets a callback which is called when a SwapBuffers command is processed.
77 virtual void SetSwapBuffersCallback(Callback0::Type* callback) = 0; 82 virtual void SetSwapBuffersCallback(Callback0::Type* callback) = 0;
78 83
79 protected: 84 protected:
80 explicit GLES2Decoder(ContextGroup* group); 85 explicit GLES2Decoder(ContextGroup* group);
81 86
82 ContextGroup* group_; 87 ContextGroup* group_;
83 88
84 private: 89 private:
85 bool debug_; 90 bool debug_;
86 91
87 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); 92 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder);
88 }; 93 };
89 94
90 } // namespace gles2 95 } // namespace gles2
91 } // namespace gpu 96 } // namespace gpu
92 97
93 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 98 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698