diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-25 20:26:34 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-25 20:26:34 +0000 |
commit | 1d1cb4a133fd30cfbc8ae561bd903cd7f179eb48 (patch) | |
tree | 5372127f368e3ec646395797d5fc8cd7439720eb /webkit/gpu/webgraphicscontext3d_in_process_impl.cc | |
parent | e9a3b0cfd6a280250cf7266e3f4d03e0fda624a8 (diff) | |
download | chromium_src-1d1cb4a133fd30cfbc8ae561bd903cd7f179eb48.zip chromium_src-1d1cb4a133fd30cfbc8ae561bd903cd7f179eb48.tar.gz chromium_src-1d1cb4a133fd30cfbc8ae561bd903cd7f179eb48.tar.bz2 |
mac: Clean up a few more uses of USE_SKIA
Likely also fixes a top-down-flipped bug with the in-process command buffer.
BUG=110881
TBR=tony
Review URL: https://codereview.chromium.org/12896006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190469 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/gpu/webgraphicscontext3d_in_process_impl.cc')
-rw-r--r-- | webkit/gpu/webgraphicscontext3d_in_process_impl.cc | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/webkit/gpu/webgraphicscontext3d_in_process_impl.cc b/webkit/gpu/webgraphicscontext3d_in_process_impl.cc index e0f68e0..72bd440 100644 --- a/webkit/gpu/webgraphicscontext3d_in_process_impl.cc +++ b/webkit/gpu/webgraphicscontext3d_in_process_impl.cc @@ -68,9 +68,7 @@ WebGraphicsContext3DInProcessImpl::WebGraphicsContext3DInProcessImpl( multisample_color_buffer_(0), bound_fbo_(0), bound_texture_(0), -#ifdef FLIP_FRAMEBUFFER_VERTICALLY scanline_(0), -#endif gl_context_(context), gl_surface_(surface), fragment_compiler_(0), @@ -103,10 +101,8 @@ WebGraphicsContext3DInProcessImpl::~WebGraphicsContext3DInProcessImpl() { glDeleteRenderbuffersEXT(1, &depth_stencil_buffer_); } glDeleteTextures(1, &texture_); -#ifdef FLIP_FRAMEBUFFER_VERTICALLY if (scanline_) delete[] scanline_; -#endif glDeleteFramebuffersEXT(1, &fbo_); gl_context_->ReleaseCurrent(gl_surface_.get()); @@ -390,13 +386,11 @@ void WebGraphicsContext3DInProcessImpl::reshape(int width, int height) { if (must_restore_fbo) glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, bound_fbo_); -#ifdef FLIP_FRAMEBUFFER_VERTICALLY if (scanline_) { delete[] scanline_; scanline_ = 0; } scanline_ = new unsigned char[width * 4]; -#endif // FLIP_FRAMEBUFFER_VERTICALLY } bool WebGraphicsContext3DInProcessImpl::AllocateOffscreenFrameBuffer( @@ -623,7 +617,6 @@ void WebGraphicsContext3DInProcessImpl::ClearRenderTarget() { glDisable(GL_DITHER); } -#ifdef FLIP_FRAMEBUFFER_VERTICALLY void WebGraphicsContext3DInProcessImpl::FlipVertically( unsigned char* framebuffer, unsigned int width, unsigned int height) { unsigned char* scanline = scanline_; @@ -643,7 +636,6 @@ void WebGraphicsContext3DInProcessImpl::FlipVertically( memcpy(row_a, scanline, row_bytes); } } -#endif bool WebGraphicsContext3DInProcessImpl::readBackFramebuffer( unsigned char* pixels, size_t bufferSize, WebGLId framebuffer, @@ -696,10 +688,8 @@ bool WebGraphicsContext3DInProcessImpl::readBackFramebuffer( glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, bound_fbo_); -#ifdef FLIP_FRAMEBUFFER_VERTICALLY if (pixels) FlipVertically(pixels, width, height); -#endif return true; } |