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

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

Issue 2886263005: Initialize remaining passthrough command decoder caps. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc ('k') | no next file » | 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) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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_passthrough.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h"
6 6
7 #include "base/strings/string_number_conversions.h" 7 #include "base/strings/string_number_conversions.h"
8 #include "ui/gl/gl_version_info.h" 8 #include "ui/gl/gl_version_info.h"
9 9
10 namespace gpu { 10 namespace gpu {
(...skipping 3304 matching lines...) Expand 10 before | Expand all | Expand 10 after
3315 } 3315 }
3316 // TODO(geofflang): force the context loss? 3316 // TODO(geofflang): force the context loss?
3317 return error::kNoError; 3317 return error::kNoError;
3318 } 3318 }
3319 3319
3320 error::Error GLES2DecoderPassthroughImpl::DoPostSubBufferCHROMIUM( 3320 error::Error GLES2DecoderPassthroughImpl::DoPostSubBufferCHROMIUM(
3321 GLint x, 3321 GLint x,
3322 GLint y, 3322 GLint y,
3323 GLint width, 3323 GLint width,
3324 GLint height) { 3324 GLint height) {
3325 if (!surface_->SupportsPostSubBuffer()) {
3326 InsertError(GL_INVALID_OPERATION,
3327 "glPostSubBufferCHROMIUM is not supported for this surface.");
3328 return error::kNoError;
3329 }
3330
3331 gfx::SwapResult result = surface_->PostSubBuffer(x, y, width, height);
3332 if (result == gfx::SwapResult::SWAP_FAILED) {
3333 LOG(ERROR) << "Context lost because PostSubBuffer failed.";
3334 }
3335 // TODO(geofflang): force the context loss?
3325 return error::kNoError; 3336 return error::kNoError;
3326 } 3337 }
3327 3338
3328 error::Error GLES2DecoderPassthroughImpl::DoCopyTextureCHROMIUM( 3339 error::Error GLES2DecoderPassthroughImpl::DoCopyTextureCHROMIUM(
3329 GLuint source_id, 3340 GLuint source_id,
3330 GLint source_level, 3341 GLint source_level,
3331 GLenum dest_target, 3342 GLenum dest_target,
3332 GLuint dest_id, 3343 GLuint dest_id,
3333 GLint dest_level, 3344 GLint dest_level,
3334 GLint internalformat, 3345 GLint internalformat,
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
4038 } 4049 }
4039 4050
4040 error::Error GLES2DecoderPassthroughImpl::DoSetEnableDCLayersCHROMIUM( 4051 error::Error GLES2DecoderPassthroughImpl::DoSetEnableDCLayersCHROMIUM(
4041 GLboolean enable) { 4052 GLboolean enable) {
4042 NOTIMPLEMENTED(); 4053 NOTIMPLEMENTED();
4043 return error::kNoError; 4054 return error::kNoError;
4044 } 4055 }
4045 4056
4046 } // namespace gles2 4057 } // namespace gles2
4047 } // namespace gpu 4058 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698