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

Issue 2735853002: Offset scissor and viewport when using SetDrawRectangle on surface. (Closed)

Created:
3 years, 9 months ago by jbauman
Modified:
3 years, 9 months ago
Reviewers:
Zhenyao Mo
CC:
chromium-reviews, piman+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Offset scissor and viewport when using SetDrawRectangle on surface. IDCompositionSurfaces get an update offset when SetDrawRectangle is called on them. Whenever the context changes to make the default surface current then the viewport and scissor must be offset by that amount for drawing to behave correctly. When switching away from the default framebuffer it needs to use the normal values again. BUG=678800 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2735853002 Cr-Commit-Position: refs/heads/master@{#455610} Committed: https://chromium.googlesource.com/chromium/src/+/974594311dcca2f77edf9d5b72d6cdbf58b1303e

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : remove flag #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -9 lines) Patch
M gpu/command_buffer/build_gles2_cmd_buffer.py View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 7 chunks +40 lines, -7 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_autogen.h View 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h View 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_framebuffers.cc View 1 chunk +100 lines, -0 lines 0 comments Download
M gpu/ipc/service/direct_composition_surface_win.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M gpu/ipc/service/direct_composition_surface_win.cc View 1 3 chunks +6 lines, -1 line 0 comments Download
M ui/gl/gl_surface.h View 3 chunks +6 lines, -0 lines 0 comments Download
M ui/gl/gl_surface.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M ui/gl/gl_surface_stub.h View 3 chunks +7 lines, -0 lines 0 comments Download
M ui/gl/gl_surface_stub.cc View 1 chunk +8 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 24 (18 generated)
jbauman
3 years, 9 months ago (2017-03-07 22:55:32 UTC) #16
Zhenyao Mo
On 2017/03/07 22:55:32, jbauman wrote: lgtm
3 years, 9 months ago (2017-03-08 17:51:55 UTC) #17
Zhenyao Mo
On 2017/03/08 17:51:55, Zhenyao Mo wrote: > On 2017/03/07 22:55:32, jbauman wrote: > > lgtm ...
3 years, 9 months ago (2017-03-08 18:03:48 UTC) #18
jbauman
On 2017/03/08 18:03:48, Zhenyao Mo wrote: > On 2017/03/08 17:51:55, Zhenyao Mo wrote: > > ...
3 years, 9 months ago (2017-03-08 23:22:05 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2735853002/40001
3 years, 9 months ago (2017-03-08 23:22:53 UTC) #21
commit-bot: I haz the power
3 years, 9 months ago (2017-03-09 00:29:22 UTC) #24
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/974594311dcca2f77edf9d5b72d6...

Powered by Google App Engine
This is Rietveld 408576698