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

Side by Side Diff: webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc

Issue 15685003: Part 2/3 (GL) of adding with device scale factor to transport surfaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h" 5 #include "webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h"
6 6
7 #include <GLES2/gl2.h> 7 #include <GLES2/gl2.h>
8 #ifndef GL_GLEXT_PROTOTYPES 8 #ifndef GL_GLEXT_PROTOTYPES
9 #define GL_GLEXT_PROTOTYPES 1 9 #define GL_GLEXT_PROTOTYPES 1
10 #endif 10 #endif
(...skipping 936 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 } 947 }
948 948
949 void WebGraphicsContext3DInProcessCommandBufferImpl::reshapeWithScaleFactor( 949 void WebGraphicsContext3DInProcessCommandBufferImpl::reshapeWithScaleFactor(
950 int width, int height, float scale_factor) { 950 int width, int height, float scale_factor) {
951 cached_width_ = width; 951 cached_width_ = width;
952 cached_height_ = height; 952 cached_height_ = height;
953 953
954 // TODO(gmam): See if we can comment this in. 954 // TODO(gmam): See if we can comment this in.
955 // ClearContext(); 955 // ClearContext();
956 956
957 gl_->ResizeCHROMIUM(width, height); 957 gl_->ResizeCHROMIUM(width, height, scale_factor);
958 } 958 }
959 959
960 WebGLId WebGraphicsContext3DInProcessCommandBufferImpl::createCompositorTexture( 960 WebGLId WebGraphicsContext3DInProcessCommandBufferImpl::createCompositorTexture(
961 WGC3Dsizei width, WGC3Dsizei height) { 961 WGC3Dsizei width, WGC3Dsizei height) {
962 // TODO(gmam): See if we can comment this in. 962 // TODO(gmam): See if we can comment this in.
963 // ClearContext(); 963 // ClearContext();
964 return context_->CreateParentTexture(gfx::Size(width, height)); 964 return context_->CreateParentTexture(gfx::Size(width, height));
965 } 965 }
966 966
967 void WebGraphicsContext3DInProcessCommandBufferImpl::deleteCompositorTexture( 967 void WebGraphicsContext3DInProcessCommandBufferImpl::deleteCompositorTexture(
(...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after
1985 DELEGATE_TO_GL_1(waitAsyncTexImage2DCHROMIUM, WaitAsyncTexImage2DCHROMIUM, 1985 DELEGATE_TO_GL_1(waitAsyncTexImage2DCHROMIUM, WaitAsyncTexImage2DCHROMIUM,
1986 WGC3Denum) 1986 WGC3Denum)
1987 1987
1988 void WebGraphicsContext3DInProcessCommandBufferImpl::SetGpuMemoryBufferCreator( 1988 void WebGraphicsContext3DInProcessCommandBufferImpl::SetGpuMemoryBufferCreator(
1989 GpuMemoryBufferCreator* creator) { 1989 GpuMemoryBufferCreator* creator) {
1990 g_gpu_memory_buffer_creator = creator; 1990 g_gpu_memory_buffer_creator = creator;
1991 } 1991 }
1992 1992
1993 } // namespace gpu 1993 } // namespace gpu
1994 } // namespace webkit 1994 } // namespace webkit
OLDNEW
« ppapi/shared_impl/ppb_graphics_3d_shared.cc ('K') | « ppapi/shared_impl/ppb_graphics_3d_shared.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698